diff options
author | Ayke van Laethem <[email protected]> | 2022-02-05 14:27:50 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-04-23 08:45:46 +0200 |
commit | 6b31ee1e9392a463b536735081cc496405929882 (patch) | |
tree | 2eeb92533ccb7269a2e013b3feb9520c004598d1 /cgo | |
parent | cad6a57077c7887025ba532a03f41d6ad78daa72 (diff) | |
download | tinygo-6b31ee1e9392a463b536735081cc496405929882.tar.gz tinygo-6b31ee1e9392a463b536735081cc496405929882.zip |
all: update to LLVM 14
Switch over to LLVM 14 for static builds. Keep using LLVM 13 for regular
builds for now.
This uses a branch of the upstream Espressif branch to fix an issue,
see: https://github.com/espressif/llvm-project/pull/59
Diffstat (limited to 'cgo')
-rw-r--r-- | cgo/libclang_config_llvm13.go | 4 | ||||
-rw-r--r-- | cgo/libclang_config_llvm14.go | 16 |
2 files changed, 18 insertions, 2 deletions
diff --git a/cgo/libclang_config_llvm13.go b/cgo/libclang_config_llvm13.go index 325334a0a..607085421 100644 --- a/cgo/libclang_config_llvm13.go +++ b/cgo/libclang_config_llvm13.go @@ -1,5 +1,5 @@ -//go:build !byollvm && !llvm11 && !llvm12 -// +build !byollvm,!llvm11,!llvm12 +//go:build !byollvm && !llvm11 && !llvm12 && !llvm14 +// +build !byollvm,!llvm11,!llvm12,!llvm14 package cgo diff --git a/cgo/libclang_config_llvm14.go b/cgo/libclang_config_llvm14.go new file mode 100644 index 000000000..953ce8e23 --- /dev/null +++ b/cgo/libclang_config_llvm14.go @@ -0,0 +1,16 @@ +//go:build !byollvm && llvm14 +// +build !byollvm,llvm14 + +package cgo + +/* +#cgo linux CFLAGS: -I/usr/lib/llvm-14/include +#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@14/include +#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@14/include +#cgo freebsd CFLAGS: -I/usr/local/llvm14/include +#cgo linux LDFLAGS: -L/usr/lib/llvm-14/lib -lclang +#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@14/lib -lclang -lffi +#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@14/lib -lclang -lffi +#cgo freebsd LDFLAGS: -L/usr/local/llvm14/lib -lclang +*/ +import "C" |