tinygo/lib
Ayke van Laethem 403d93560b builder: build static binaries using musl on Linux
This commit adds support for musl-libc and uses it by default on Linux.
The main benefit of it is that binaries are always statically linked
instead of depending on the host libc, even when using CGo.

Advantages:
  - The resulting binaries are always statically linked.
  - No need for any tools on the host OS, like a compiler, linker, or
    libc in a release build of TinyGo.
  - This also simplifies cross compilation as no cross compiler is
    needed (it's all built into the TinyGo release build).

Disadvantages:
  - Binary size increases by 5-6 kilobytes if -no-debug is used. Binary
    size increases by a much larger margin when debugging symbols are
    included (the default behavior) because musl is built with debugging
    symbols enabled.
  - Musl does things a bit differently than glibc, and some CGo code
    might rely on the glibc behavior.
  - The first build takes a bit longer because musl needs to be built.

As an additional bonus, time is now obtained from the system in a way
that fixes the Y2038 problem because musl has been a bit more agressive
in switching to 64-bit time_t.
2021-11-04 17:15:38 +01:00
..
avr@6624554c02 avr: remove device files, use them from a subrepository 2018-09-05 12:13:33 +02:00
CMSIS@9fe411cef1 Add runtime support for the nRF52 2018-04-25 20:06:08 +02:00
cmsis-svd@df75ff974c esp32c3: add support for this chip 2021-09-16 20:13:04 +02:00
compiler-rt@5bc79797e1 Revert "all: use compiler-rt from the llvm-project directory" 2019-11-25 14:37:52 +01:00
musl@040c1d16b4 builder: build static binaries using musl on Linux 2021-11-04 17:15:38 +01:00
nrfx@d779b49fc5 nrfx: updare submodule to latest commit 2021-01-06 18:50:46 +01:00
picolibc@f68b8204f7 cgo: add support for stdio in picolibc and wasi-libc 2021-10-26 17:08:30 +02:00
stm32-svd@3a0b0829b7 stm32: support SPI on L4 series 2021-04-21 21:09:41 +02:00
wasi-libc@215adc8ac9 wasm: update wasi-libc dependency 2020-08-25 18:42:42 +02:00
picolibc-stdio.c cgo: add support for stdio in picolibc and wasi-libc 2021-10-26 17:08:30 +02:00