aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/ar.go
AgeCommit message (Collapse)Author
2022-08-04all: format code according to Go 1.19 rulesAyke van Laethem
Go 1.19 started reformatting code in a way that makes it more obvious how it will be rendered on pkg.go.dev. It gets it almost right, but not entirely. Therefore, I had to modify some of the comments so that they are formatted correctly.
2021-11-16all: add support for windows/amd64Ayke van Laethem
This uses Mingw-w64, which seems to be the de facto standard for porting Unixy programs to Windows.
2021-11-04builder: reduce number of open filesAyke van Laethem
MacOS X 10.14 has a soft limit of 256 open files by default, at least on CircleCI. So don't keep object files open while writing the ar file to reduce the number of open files at once. Context: the musl libc has more than 256 object files in the .a file. This resulted in the error "too many open files" on MacOS X 10.14 when running in CircleCI.
2021-11-04picolibc: add include directory to build artefactAyke van Laethem
This is really just a preparatory commit for musl support. The idea is to store not just the archive file (.a) but also an include directory. This is optional for picolibc but required for musl, so the main purpose of this commit is the refactor needed for this change.
2021-10-26cgo: add support for stdio in picolibc and wasi-libcAyke van Laethem
This adds support for stdio in picolibc and fixes wasm_exec.js so that it can also support C puts. With this, C stdout works on all supported platforms.
2021-09-27all: fix staticcheck warningsAyke van Laethem
This is a loose collection of small fixes flagged by staticcheck: - dead code - regexp expressions not using backticks (`foobar` / "foobar") - redundant types of slice and map initializers - misc other fixes Not all of these seem very useful to me, but in particular dead code is nice to fix. I've fixed them all just so that if there are problems, they aren't hidden in the noise of less useful issues.
2019-11-13builder: write a symbol table when writing out the compiler-rt libAyke van Laethem
This should fix an issue with LLVM 9 (specifically, ld.lld-9). See: https://github.com/tinygo-org/tinygo/issues/595