diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c3aad07..70e64c9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,7 +27,7 @@ jobs: run: go test -v -tags=llvm${{ matrix.llvm }} - name: Test default LLVM - if: matrix.llvm == 19 + if: matrix.llvm == 21 run: go test -v test-linux: @@ -52,7 +52,7 @@ jobs: run: go test -v -tags=llvm${{ matrix.llvm }} - name: Test default LLVM - if: matrix.llvm == 19 + if: matrix.llvm == 21 run: go test -v test-linux-fedora: @@ -75,6 +75,6 @@ jobs: run: go test -v -tags=llvm${{ matrix.llvm }} - name: Test default LLVM - if: matrix.llvm == 19 + if: matrix.llvm == 21 run: go test -v diff --git a/README.markdown b/README.markdown index e66c391..2ae79aa 100644 --- a/README.markdown +++ b/README.markdown @@ -11,12 +11,12 @@ This library provides bindings to a system-installed LLVM. Currently supported: - * LLVM 20, 19, 18, 17, 16, 15 and 14 from [apt.llvm.org](http://apt.llvm.org/) on Debian/Ubuntu. - * LLVM 20, 19, 18, 17, 16, 15 and 14 from Homebrew on macOS. + * LLVM 22, 21, 20, 19, 18, 17, 16, 15 and 14 from [apt.llvm.org](http://apt.llvm.org/) on Debian/Ubuntu. + * LLVM 22, 21, 20, 19, 18, 17, 16, 15 and 14 from Homebrew on macOS. * Any of the above versions with a manually built LLVM through the `byollvm` build tag. You need to set up `CFLAGS`/`LDFLAGS` etc yourself in this case. -You can select the LLVM version using a build tag, for example `-tags=llvm17` -to use LLVM 17. +LLVM 21 is selected by default. You can select another LLVM version using a +build tag, for example `-tags=llvm19` to use LLVM 19. ## Usage diff --git a/llvm_config_llvm19.go b/llvm_config_llvm19.go index fea3f0b..ac184ea 100644 --- a/llvm_config_llvm19.go +++ b/llvm_config_llvm19.go @@ -1,5 +1,5 @@ -//go:build !byollvm && !llvm14 && !llvm15 && !llvm16 && !llvm17 && !llvm18 && !llvm20 && !llvm21 && !llvm22 -// +build !byollvm,!llvm14,!llvm15,!llvm16,!llvm17,!llvm18,!llvm20,!llvm21,!llvm22 +//go:build !byollvm && llvm19 +// +build !byollvm,llvm19 package llvm diff --git a/llvm_config_llvm21.go b/llvm_config_llvm21.go index 263c2fc..a37ae23 100644 --- a/llvm_config_llvm21.go +++ b/llvm_config_llvm21.go @@ -1,4 +1,5 @@ -//go:build !byollvm && llvm21 +//go:build !byollvm && !llvm14 && !llvm15 && !llvm16 && !llvm17 && !llvm18 && !llvm19 && !llvm20 && !llvm22 +// +build !byollvm,!llvm14,!llvm15,!llvm16,!llvm17,!llvm18,!llvm19,!llvm20,!llvm22 package llvm