aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-05-05 14:52:20 +0200
committerRon Evans <[email protected]>2022-05-07 17:15:35 +0200
commit5c23f6fb6c64c4de46a3cf2374490a2c3b7401f3 (patch)
treee5048ec49679778313cb3db5416bbbb0b4b3bddd /cgo
parent5afb63df60427bd5ddf7adb8e2d43258c2544ce6 (diff)
downloadtinygo-5c23f6fb6c64c4de46a3cf2374490a2c3b7401f3.tar.gz
tinygo-5c23f6fb6c64c4de46a3cf2374490a2c3b7401f3.zip
all: remove support for LLVM 11 and LLVM 12
This removes a lot of backwards compatibility cruft and makes it possible to start using features that need LLVM 13 or newer. For example: * https://github.com/tinygo-org/tinygo/pull/2637 * https://github.com/tinygo-org/tinygo/pull/2830
Diffstat (limited to 'cgo')
-rw-r--r--cgo/libclang_config_llvm11.go16
-rw-r--r--cgo/libclang_config_llvm12.go16
-rw-r--r--cgo/libclang_config_llvm13.go4
3 files changed, 2 insertions, 34 deletions
diff --git a/cgo/libclang_config_llvm11.go b/cgo/libclang_config_llvm11.go
deleted file mode 100644
index a967d4716..000000000
--- a/cgo/libclang_config_llvm11.go
+++ /dev/null
@@ -1,16 +0,0 @@
-//go:build !byollvm && llvm11
-// +build !byollvm,llvm11
-
-package cgo
-
-/*
-#cgo linux CFLAGS: -I/usr/lib/llvm-11/include
-#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@11/include
-#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@11/include
-#cgo freebsd CFLAGS: -I/usr/local/llvm11/include
-#cgo linux LDFLAGS: -L/usr/lib/llvm-11/lib -lclang
-#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@11/lib -lclang -lffi
-#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@11/lib -lclang -lffi
-#cgo freebsd LDFLAGS: -L/usr/local/llvm11/lib -lclang
-*/
-import "C"
diff --git a/cgo/libclang_config_llvm12.go b/cgo/libclang_config_llvm12.go
deleted file mode 100644
index 736b33362..000000000
--- a/cgo/libclang_config_llvm12.go
+++ /dev/null
@@ -1,16 +0,0 @@
-//go:build !byollvm && llvm12
-// +build !byollvm,llvm12
-
-package cgo
-
-/*
-#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"
diff --git a/cgo/libclang_config_llvm13.go b/cgo/libclang_config_llvm13.go
index 607085421..7a3db6156 100644
--- a/cgo/libclang_config_llvm13.go
+++ b/cgo/libclang_config_llvm13.go
@@ -1,5 +1,5 @@
-//go:build !byollvm && !llvm11 && !llvm12 && !llvm14
-// +build !byollvm,!llvm11,!llvm12,!llvm14
+//go:build !byollvm && !llvm14
+// +build !byollvm,!llvm14
package cgo