diff options
author | Ayke van Laethem <[email protected]> | 2023-10-15 02:07:24 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-10-15 17:51:13 +0200 |
commit | 7468a00ef4b7017e978690f01baf7d7b89fdc2ed (patch) | |
tree | 405180679ebdb9a2a03dd6cfd1308c0062f247a0 /cgo | |
parent | 8d77278c6b6eb3dd1d60d0b24c3329dfb7fd289b (diff) | |
download | tinygo-7468a00ef4b7017e978690f01baf7d7b89fdc2ed.tar.gz tinygo-7468a00ef4b7017e978690f01baf7d7b89fdc2ed.zip |
all: fix a small incompatibility with Nix
Hopefully this won't break anybody: while all tests still pass, there
could in theory be systems where not supplying those libraries leads to
linker errors.
Diffstat (limited to 'cgo')
-rw-r--r-- | cgo/libclang_config_llvm15.go | 4 | ||||
-rw-r--r-- | cgo/libclang_config_llvm16.go | 4 | ||||
-rw-r--r-- | cgo/libclang_config_llvm17.go | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/cgo/libclang_config_llvm15.go b/cgo/libclang_config_llvm15.go index e105dfe72..edb1128dc 100644 --- a/cgo/libclang_config_llvm15.go +++ b/cgo/libclang_config_llvm15.go @@ -8,8 +8,8 @@ package cgo #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 darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@15/lib -lclang +#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@15/lib -lclang #cgo freebsd LDFLAGS: -L/usr/local/llvm15/lib -lclang */ import "C" diff --git a/cgo/libclang_config_llvm16.go b/cgo/libclang_config_llvm16.go index 8afdb14cb..5bc5377ca 100644 --- a/cgo/libclang_config_llvm16.go +++ b/cgo/libclang_config_llvm16.go @@ -14,8 +14,8 @@ package cgo #cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@16/include #cgo freebsd CFLAGS: -I/usr/local/llvm16/include #cgo linux LDFLAGS: -L/usr/lib/llvm-16/lib -lclang -#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@16/lib -lclang -lffi -#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@16/lib -lclang -lffi +#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@16/lib -lclang +#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@16/lib -lclang #cgo freebsd LDFLAGS: -L/usr/local/llvm16/lib -lclang */ import "C" diff --git a/cgo/libclang_config_llvm17.go b/cgo/libclang_config_llvm17.go index fd6d1480e..6395d8a3a 100644 --- a/cgo/libclang_config_llvm17.go +++ b/cgo/libclang_config_llvm17.go @@ -8,8 +8,8 @@ package cgo #cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@17/include #cgo freebsd CFLAGS: -I/usr/local/llvm17/include #cgo linux LDFLAGS: -L/usr/lib/llvm-17/lib -lclang -#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@17/lib -lclang -lffi -#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@17/lib -lclang -lffi +#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@17/lib -lclang +#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@17/lib -lclang #cgo freebsd LDFLAGS: -L/usr/local/llvm17/lib -lclang */ import "C" |