Skip to content

Commit 5f1fae7

Browse files
committed
Use LLVM 14 by default
Also add LLVM 14 support on MacOS, now that it is available.
1 parent 4cc1e6d commit 5f1fae7

File tree

5 files changed

+29
-12
lines changed

5 files changed

+29
-12
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@ jobs:
1717
- name: Test LLVM 13
1818
run:
1919
go test -v -tags=llvm13
20-
- name: Test default LLVM
21-
run:
22-
go test -v
2320
test-macos-llvm-14:
2421
runs-on: macos-latest
2522
steps:
2623
- name: Checkout
2724
uses: actions/checkout@v2
2825
- name: Install LLVM
2926
run: |
27+
brew update
3028
brew install llvm@14
3129
- name: Test LLVM 14
3230
run:
3331
go test -v -tags=llvm14
32+
- name: Test default LLVM
33+
run:
34+
go test -v
3435
test-linux-llvm-14:
3536
runs-on: ubuntu-20.04
3637
steps:
@@ -45,6 +46,9 @@ jobs:
4546
- name: Test LLVM 14
4647
run:
4748
go test -v -tags=llvm14
49+
- name: Test default LLVM
50+
run:
51+
go test -v
4852
test-linux-llvm-13:
4953
runs-on: ubuntu-20.04
5054
steps:
@@ -59,6 +63,3 @@ jobs:
5963
- name: Test LLVM 13
6064
run:
6165
go test -v -tags=llvm13
62-
- name: Test default LLVM
63-
run:
64-
go test -v

llvm_config_darwin_llvm13.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !byollvm && darwin
2-
// +build !byollvm,darwin
1+
//go:build !byollvm && darwin && llvm13
2+
// +build !byollvm,darwin,llvm13
33

44
package llvm
55

llvm_config_darwin_llvm14.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//go:build !byollvm && darwin && !llvm13
2+
// +build !byollvm,darwin,!llvm13
3+
4+
package llvm
5+
6+
// Automatically generated by `make config BUILDDIR=`, do not edit.
7+
8+
// #cgo amd64 CPPFLAGS: -I/usr/local/opt/llvm@14/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
9+
// #cgo amd64 CXXFLAGS: -std=c++14
10+
// #cgo amd64 LDFLAGS: -L/usr/local/opt/llvm@14/lib -Wl,-search_paths_first -Wl,-headerpad_max_install_names -lLLVM -lz -lcurses -lm -lxml2 -L/usr/local/opt/libffi/lib -lffi
11+
// #cgo arm64 CPPFLAGS: -I/opt/homebrew/opt/llvm@14/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
12+
// #cgo arm64 CXXFLAGS: -std=c++14
13+
// #cgo arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@14/lib -Wl,-search_paths_first -Wl,-headerpad_max_install_names -lLLVM -lz -lcurses -lm -lxml2 -L/opt/homebrew/opt/libffi/lib -lffi
14+
import "C"
15+
16+
type run_build_sh int

llvm_config_linux_llvm13.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !byollvm && linux && !llvm14
2-
// +build !byollvm,linux,!llvm14
1+
//go:build !byollvm && linux && llvm13
2+
// +build !byollvm,linux,llvm13
33

44
package llvm
55

llvm_config_linux_llvm14.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !byollvm && linux && llvm14
2-
// +build !byollvm,linux,llvm14
1+
//go:build !byollvm && linux && !llvm13
2+
// +build !byollvm,linux,!llvm13
33

44
package llvm
55

0 commit comments

Comments
 (0)