diff options
author | Ayke van Laethem <[email protected]> | 2019-11-01 21:53:21 +0100 |
---|---|---|
committer | Ayke <[email protected]> | 2019-11-16 18:44:27 +0100 |
commit | 118af9df69409fa75b5f1aefa8829c9a1c47492b (patch) | |
tree | 9ff0dd1d5caf12b3cb67872da24152a9e99b397a /cgo | |
parent | 172efc26a742d3096787f58e86ae7ada118a709e (diff) | |
download | tinygo-118af9df69409fa75b5f1aefa8829c9a1c47492b.tar.gz tinygo-118af9df69409fa75b5f1aefa8829c9a1c47492b.zip |
all: switch to LLVM 9
Diffstat (limited to 'cgo')
-rw-r--r-- | cgo/libclang.go | 2 | ||||
-rw-r--r-- | cgo/libclang_config.go | 8 | ||||
-rw-r--r-- | cgo/libclang_stubs.c | 2 |
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); |