aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo/libclang_config_llvm15.go
diff options
context:
space:
mode:
Diffstat (limited to 'cgo/libclang_config_llvm15.go')
-rw-r--r--cgo/libclang_config_llvm15.go16
1 files changed, 16 insertions, 0 deletions
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"