aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo/libclang_config_llvm12.go
diff options
context:
space:
mode:
Diffstat (limited to 'cgo/libclang_config_llvm12.go')
-rw-r--r--cgo/libclang_config_llvm12.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/cgo/libclang_config_llvm12.go b/cgo/libclang_config_llvm12.go
index 1837cc154..69808d2ea 100644
--- a/cgo/libclang_config_llvm12.go
+++ b/cgo/libclang_config_llvm12.go
@@ -1,14 +1,16 @@
-// +build !byollvm
-// +build llvm12
+//go:build !byollvm && llvm12
+// +build !byollvm,llvm12
package cgo
/*
-#cgo linux CFLAGS: -I/usr/lib/llvm-12/include
-#cgo darwin CFLAGS: -I/usr/local/opt/llvm@12/include
-#cgo freebsd CFLAGS: -I/usr/local/llvm12/include
-#cgo linux LDFLAGS: -L/usr/lib/llvm-12/lib -lclang
-#cgo darwin LDFLAGS: -L/usr/local/opt/llvm@12/lib -lclang -lffi
-#cgo freebsd LDFLAGS: -L/usr/local/llvm12/lib -lclang
+#cgo linux CFLAGS: -I/usr/lib/llvm-12/include
+#cgo darwin amd64 CFLAGS: -I/usr/local/opt/llvm@12/include
+#cgo darwin arm64 CFLAGS: -I/opt/homebrew/opt/llvm@12/include
+#cgo freebsd CFLAGS: -I/usr/local/llvm12/include
+#cgo linux LDFLAGS: -L/usr/lib/llvm-12/lib -lclang
+#cgo darwin amd64 LDFLAGS: -L/usr/local/opt/llvm@12/lib -lclang -lffi
+#cgo darwin arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@12/lib -lclang -lffi
+#cgo freebsd LDFLAGS: -L/usr/local/llvm12/lib -lclang
*/
import "C"