diff options
author | Ayke van Laethem <[email protected]> | 2022-11-04 14:50:26 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-11-06 09:05:05 +0100 |
commit | df888acd5eff0eb5a70ef87ba083f0f15737d120 (patch) | |
tree | f83101a0e4b7fbdfa0ecc36794478ba3888c24a8 /.github | |
parent | b9bb605257a0faa128dd7e07a9bb32a7bbf28d9a (diff) | |
download | tinygo-df888acd5eff0eb5a70ef87ba083f0f15737d120.tar.gz tinygo-df888acd5eff0eb5a70ef87ba083f0f15737d120.zip |
avr: drop GNU toolchain dependency
- Use compiler-rt and picolibc instead of avr-libc.
- Use ld.lld instead of avr-ld (or avr-gcc).
This makes it much easier to get started with TinyGo on AVR because
installing these extra tools (gcc-avr, avr-libc) can be a hassle.
It also opens the door for future improvements such as ThinLTO.
There is a code size increase but I think it's worth it in the long run.
The code size increase can hopefully be reduced with improvements to the
LLVM AVR backend and to compiler-rt.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-macos.yml | 2 | ||||
-rw-r--r-- | .github/workflows/linux.yml | 7 | ||||
-rw-r--r-- | .github/workflows/windows.yml | 2 |
3 files changed, 2 insertions, 9 deletions
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 680958094..0359a9f31 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -93,7 +93,7 @@ jobs: path: build/tinygo.darwin-amd64.tar.gz - name: Smoke tests shell: bash - run: make smoketest TINYGO=$(PWD)/build/tinygo AVR=0 + run: make smoketest TINYGO=$(PWD)/build/tinygo test-macos-homebrew: name: homebrew-install runs-on: macos-latest diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8a5a1c28d..7ead14904 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -133,11 +133,6 @@ jobs: mkdir -p ~/lib tar -C ~/lib -xf tinygo.linux-amd64.tar.gz ln -s ~/lib/tinygo/bin/tinygo ~/go/bin/tinygo - - name: Install apt dependencies - run: | - sudo apt-get install --no-install-recommends \ - gcc-avr \ - avr-libc - run: make tinygo-test-wasi-fast - run: make smoketest assert-test-linux: @@ -158,8 +153,6 @@ jobs: qemu-system-arm \ qemu-system-riscv32 \ qemu-user \ - gcc-avr \ - avr-libc \ simavr \ ninja-build - name: Install Go diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0aa3357eb..6e493d89a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -125,7 +125,7 @@ jobs: run: 7z x release.zip -r - name: Smoke tests shell: bash - run: make smoketest TINYGO=$(PWD)/build/tinygo/bin/tinygo AVR=0 + run: make smoketest TINYGO=$(PWD)/build/tinygo/bin/tinygo stdlib-test-windows: runs-on: windows-2022 |