Skip to content

Commit

Permalink
Use LLVM 14 by default
Browse files Browse the repository at this point in the history
Also add LLVM 14 support on MacOS, now that it is available.
  • Loading branch information
aykevl committed Jun 26, 2022
1 parent 4cc1e6d commit 5f1fae7
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ jobs:
- name: Test LLVM 13
run:
go test -v -tags=llvm13
- name: Test default LLVM
run:
go test -v
test-macos-llvm-14:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: |
brew update
brew install llvm@14
- name: Test LLVM 14
run:
go test -v -tags=llvm14
- name: Test default LLVM
run:
go test -v
test-linux-llvm-14:
runs-on: ubuntu-20.04
steps:
Expand All @@ -45,6 +46,9 @@ jobs:
- name: Test LLVM 14
run:
go test -v -tags=llvm14
- name: Test default LLVM
run:
go test -v
test-linux-llvm-13:
runs-on: ubuntu-20.04
steps:
Expand All @@ -59,6 +63,3 @@ jobs:
- name: Test LLVM 13
run:
go test -v -tags=llvm13
- name: Test default LLVM
run:
go test -v
4 changes: 2 additions & 2 deletions llvm_config_darwin_llvm13.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !byollvm && darwin
// +build !byollvm,darwin
//go:build !byollvm && darwin && llvm13
// +build !byollvm,darwin,llvm13

package llvm

Expand Down
16 changes: 16 additions & 0 deletions llvm_config_darwin_llvm14.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//go:build !byollvm && darwin && !llvm13
// +build !byollvm,darwin,!llvm13

package llvm

// Automatically generated by `make config BUILDDIR=`, do not edit.

// #cgo amd64 CPPFLAGS: -I/usr/local/opt/llvm@14/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
// #cgo amd64 CXXFLAGS: -std=c++14
// #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
// #cgo arm64 CPPFLAGS: -I/opt/homebrew/opt/llvm@14/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
// #cgo arm64 CXXFLAGS: -std=c++14
// #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
import "C"

type run_build_sh int
4 changes: 2 additions & 2 deletions llvm_config_linux_llvm13.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !byollvm && linux && !llvm14
// +build !byollvm,linux,!llvm14
//go:build !byollvm && linux && llvm13
// +build !byollvm,linux,llvm13

package llvm

Expand Down
4 changes: 2 additions & 2 deletions llvm_config_linux_llvm14.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !byollvm && linux && llvm14
// +build !byollvm,linux,llvm14
//go:build !byollvm && linux && !llvm13
// +build !byollvm,linux,!llvm13

package llvm

Expand Down

0 comments on commit 5f1fae7

Please sign in to comment.