aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-11-01 21:53:21 +0100
committerAyke <[email protected]>2019-11-16 18:44:27 +0100
commit118af9df69409fa75b5f1aefa8829c9a1c47492b (patch)
tree9ff0dd1d5caf12b3cb67872da24152a9e99b397a /cgo
parent172efc26a742d3096787f58e86ae7ada118a709e (diff)
downloadtinygo-118af9df69409fa75b5f1aefa8829c9a1c47492b.tar.gz
tinygo-118af9df69409fa75b5f1aefa8829c9a1c47492b.zip
all: switch to LLVM 9
Diffstat (limited to 'cgo')
-rw-r--r--cgo/libclang.go2
-rw-r--r--cgo/libclang_config.go8
-rw-r--r--cgo/libclang_stubs.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/cgo/libclang.go b/cgo/libclang.go
index 46eff01c0..336122a74 100644
--- a/cgo/libclang.go
+++ b/cgo/libclang.go
@@ -15,7 +15,7 @@ import (
)
/*
-#include <clang-c/Index.h> // if this fails, install libclang-8-dev
+#include <clang-c/Index.h> // if this fails, install libclang-9-dev
#include <stdlib.h>
#include <stdint.h>
diff --git a/cgo/libclang_config.go b/cgo/libclang_config.go
index 4b08d3cbf..822e05206 100644
--- a/cgo/libclang_config.go
+++ b/cgo/libclang_config.go
@@ -3,9 +3,9 @@
package cgo
/*
-#cgo linux CFLAGS: -I/usr/lib/llvm-8/include
-#cgo darwin CFLAGS: -I/usr/local/opt/llvm@8/include
-#cgo linux LDFLAGS: -L/usr/lib/llvm-8/lib -lclang
-#cgo darwin LDFLAGS: -L/usr/local/opt/llvm@8/lib -lclang -lffi
+#cgo linux CFLAGS: -I/usr/lib/llvm-9/include
+#cgo darwin CFLAGS: -I/usr/local/opt/llvm@9/include
+#cgo linux LDFLAGS: -L/usr/lib/llvm-9/lib -lclang
+#cgo darwin LDFLAGS: -L/usr/local/opt/llvm@9/lib -lclang -lffi
*/
import "C"
diff --git a/cgo/libclang_stubs.c b/cgo/libclang_stubs.c
index ba3e6af93..9c193076b 100644
--- a/cgo/libclang_stubs.c
+++ b/cgo/libclang_stubs.c
@@ -3,7 +3,7 @@
// are slightly different from the ones defined in libclang.go, but they
// should be ABI compatible.
-#include <clang-c/Index.h> // if this fails, install libclang-8-dev
+#include <clang-c/Index.h> // if this fails, install libclang-9-dev
CXCursor tinygo_clang_getTranslationUnitCursor(CXTranslationUnit tu) {
return clang_getTranslationUnitCursor(tu);