aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-09-18 17:54:29 +0200
committerAyke <[email protected]>2023-10-01 18:32:15 +0200
commit1da1abe3147796aa56a5486ed6f07afdd88d8234 (patch)
tree256e56c96855bb27e67834a9586bac510ccff910 /cgo
parentc9721197d5adb70a5086ecd320a1e3745bcaacc7 (diff)
downloadtinygo-1da1abe3147796aa56a5486ed6f07afdd88d8234.tar.gz
tinygo-1da1abe3147796aa56a5486ed6f07afdd88d8234.zip
all: remove LLVM 14 support
This is a big change: apart from removing LLVM 14 it also removes typed pointer support (which was only fully supported in LLVM up to version 14). This removes about 200 lines of code, but more importantly removes a ton of special cases for LLVM 14.
Diffstat (limited to 'cgo')
-rw-r--r--cgo/libclang_config_llvm14.go15
-rw-r--r--cgo/libclang_config_llvm16.go2
2 files changed, 1 insertions, 16 deletions
diff --git a/cgo/libclang_config_llvm14.go b/cgo/libclang_config_llvm14.go
deleted file mode 100644
index 861ced9de..000000000
--- a/cgo/libclang_config_llvm14.go
+++ /dev/null
@@ -1,15 +0,0 @@
-//go: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"
diff --git a/cgo/libclang_config_llvm16.go b/cgo/libclang_config_llvm16.go
index 79aacd2f2..01c3a7e2d 100644
--- a/cgo/libclang_config_llvm16.go
+++ b/cgo/libclang_config_llvm16.go
@@ -1,4 +1,4 @@
-//go:build !byollvm && !llvm14 && !llvm15
+//go:build !byollvm && !llvm15
package cgo