diff options
-rw-r--r-- | .circleci/config.yml | 2 | ||||
-rw-r--r-- | .github/workflows/build-macos.yml | 4 | ||||
-rwxr-xr-x | .github/workflows/sizediff-install-pkgs.sh | 10 | ||||
-rw-r--r-- | cgo/libclang_config_llvm16.go | 2 | ||||
-rw-r--r-- | cgo/libclang_config_llvm17.go | 2 | ||||
-rw-r--r-- | flake.nix | 10 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 4 |
8 files changed, 18 insertions, 18 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e8e6a031..ff6e2b2e6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -128,5 +128,5 @@ workflows: - test-llvm15-go118 # This tests the upcoming Go 1.22 support. - test-llvm16-go122 - # This tests the upcoming LLVM 17 support. + # This tests LLVM 17 support when linking against system libraries. - test-llvm17-go121 diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 230603bb1..e6f169bd3 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -142,8 +142,8 @@ jobs: - name: Check binary run: tinygo version - name: Build TinyGo (default LLVM) - if: matrix.version == 16 + if: matrix.version == 17 run: go install - name: Check binary - if: matrix.version == 16 + if: matrix.version == 17 run: tinygo version diff --git a/.github/workflows/sizediff-install-pkgs.sh b/.github/workflows/sizediff-install-pkgs.sh index f50433fd8..ce51d4d36 100755 --- a/.github/workflows/sizediff-install-pkgs.sh +++ b/.github/workflows/sizediff-install-pkgs.sh @@ -2,11 +2,11 @@ # still works after checking out the dev branch (that is, when going from LLVM # 16 to LLVM 17 for example, both Clang 16 and Clang 17 are installed). -echo 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main' | sudo tee /etc/apt/sources.list.d/llvm.list +echo 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main' | sudo tee /etc/apt/sources.list.d/llvm.list wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get update sudo apt-get install --no-install-recommends -y \ - llvm-16-dev \ - clang-16 \ - libclang-16-dev \ - lld-16 + llvm-17-dev \ + clang-17 \ + libclang-17-dev \ + lld-17 diff --git a/cgo/libclang_config_llvm16.go b/cgo/libclang_config_llvm16.go index 5bc5377ca..ee354e212 100644 --- a/cgo/libclang_config_llvm16.go +++ b/cgo/libclang_config_llvm16.go @@ -1,4 +1,4 @@ -//go:build !byollvm && !llvm15 && !llvm17 +//go:build !byollvm && llvm16 package cgo diff --git a/cgo/libclang_config_llvm17.go b/cgo/libclang_config_llvm17.go index 6395d8a3a..c17cca09b 100644 --- a/cgo/libclang_config_llvm17.go +++ b/cgo/libclang_config_llvm17.go @@ -1,4 +1,4 @@ -//go:build !byollvm && llvm17 +//go:build !byollvm && !llvm15 && !llvm16 package cgo @@ -49,11 +49,11 @@ buildInputs = [ # These dependencies are required for building tinygo (go install). go - llvmPackages_16.llvm - llvmPackages_16.libclang + llvmPackages_17.llvm + llvmPackages_17.libclang # Additional dependencies needed at runtime, for building and/or # flashing. - llvmPackages_16.lld + llvmPackages_17.lld avrdude binaryen # Additional dependencies needed for on-chip debugging. @@ -68,7 +68,7 @@ # Without setting these explicitly, Homebrew versions might be used # or the default `ar` and `nm` tools might be used (which don't # support wasi). - export CLANG="clang-16 -resource-dir ${llvmPackages_16.clang.cc.lib}/lib/clang/16" + export CLANG="clang-17 -resource-dir ${llvmPackages_17.clang.cc.lib}/lib/clang/17" export LLVM_AR=llvm-ar export LLVM_NM=llvm-nm @@ -77,7 +77,7 @@ export MD5SUM=md5sum # Ugly hack to make the Clang resources directory available. - export GOFLAGS="\"-ldflags=-X github.com/tinygo-org/tinygo/goenv.clangResourceDir=${llvmPackages_16.clang.cc.lib}/lib/clang/16"\" + export GOFLAGS="\"-ldflags=-X github.com/tinygo-org/tinygo/goenv.clangResourceDir=${llvmPackages_17.clang.cc.lib}/lib/clang/17"\" ''; }; } @@ -19,7 +19,7 @@ require ( golang.org/x/sys v0.16.0 golang.org/x/tools v0.17.0 gopkg.in/yaml.v2 v2.4.0 - tinygo.org/x/go-llvm v0.0.0-20231014233752-75a8a9fe6f74 + tinygo.org/x/go-llvm v0.0.0-20240106122909-c2c543540318 ) require ( @@ -69,5 +69,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -tinygo.org/x/go-llvm v0.0.0-20231014233752-75a8a9fe6f74 h1:tW8XhLI9gUZLL+2pG0HYb5dc6bpMj1aqtESpizXPnMY= -tinygo.org/x/go-llvm v0.0.0-20231014233752-75a8a9fe6f74/go.mod h1:GFbusT2VTA4I+l4j80b17KFK+6whv69Wtny5U+T8RR0= +tinygo.org/x/go-llvm v0.0.0-20240106122909-c2c543540318 h1:4KjZvPtcN1UwobevcGbdzeinx0L1i8HDdJu84bu7NI8= +tinygo.org/x/go-llvm v0.0.0-20240106122909-c2c543540318/go.mod h1:GFbusT2VTA4I+l4j80b17KFK+6whv69Wtny5U+T8RR0= |