diff options
author | Ayke van Laethem <[email protected]> | 2022-09-22 13:39:51 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-10-19 22:23:19 +0200 |
commit | 2b7f56220210198dc850df7d03017d7908bb119c (patch) | |
tree | c6caf479f9afed2d026f828b603b9984406494b6 /cgo | |
parent | 08a51535d43dfc2ee11ec239f87f3321ddd8f469 (diff) | |
download | tinygo-2b7f56220210198dc850df7d03017d7908bb119c.tar.gz tinygo-2b7f56220210198dc850df7d03017d7908bb119c.zip |
ci: add support for LLVM 15
This commit switches to LLVM 15 everywhere by default, while still
keeping LLVM 14 support.
Diffstat (limited to 'cgo')
-rw-r--r-- | cgo/libclang_config_llvm14.go | 4 | ||||
-rw-r--r-- | cgo/libclang_config_llvm15.go | 16 |
2 files changed, 18 insertions, 2 deletions
diff --git a/cgo/libclang_config_llvm14.go b/cgo/libclang_config_llvm14.go index 0553bd50d..953ce8e23 100644 --- a/cgo/libclang_config_llvm14.go +++ b/cgo/libclang_config_llvm14.go @@ -1,5 +1,5 @@ -//go:build !byollvm -// +build !byollvm +//go:build !byollvm && llvm14 +// +build !byollvm,llvm14 package cgo diff --git a/cgo/libclang_config_llvm15.go b/cgo/libclang_config_llvm15.go new file mode 100644 index 000000000..e918a473a --- /dev/null +++ b/cgo/libclang_config_llvm15.go @@ -0,0 +1,16 @@ +//go:build !byollvm && !llvm14 +// +build !byollvm,!llvm14 + +package cgo + +/* +#cgo linux CFLAGS: -I/usr/lib/llvm-15/include +#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@15/include +#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@15/include +#cgo freebsd CFLAGS: -I/usr/local/llvm15/include +#cgo linux LDFLAGS: -L/usr/lib/llvm-15/lib -lclang +#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@15/lib -lclang -lffi +#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@15/lib -lclang -lffi +#cgo freebsd LDFLAGS: -L/usr/local/llvm15/lib -lclang +*/ +import "C" |