Skip to content

Commit c74eb6f

Browse files
committedAug 25, 2024
WIP use LLVM 19
1 parent aaff3eb commit c74eb6f

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed
 

‎README.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ This library provides bindings to a system-installed LLVM.
44

55
Currently supported:
66

7-
* LLVM 17, 16, 15 and 14 from [apt.llvm.org](http://apt.llvm.org/) on Debian/Ubuntu.
8-
* LLVM 17, 16, 15 and 14 from Homebrew on macOS.
9-
* LLVM 15 with a manually built LLVM through the `byollvm` build tag. You
7+
* LLVM 19, 18, 17, 16, 15 and 14 from [apt.llvm.org](http://apt.llvm.org/) on Debian/Ubuntu.
8+
* LLVM 18, 17, 16, 15 and 14 from Homebrew on macOS.
9+
* LLVM 19 with a manually built LLVM through the `byollvm` build tag. You
1010
need to set up `CFLAGS`/`LDFLAGS` etc yourself in this case.
1111

12-
You can select the LLVM version using a build tag, for example `-tags=llvm14`
13-
to use LLVM 14.
12+
You can select the LLVM version using a build tag, for example `-tags=llvm17`
13+
to use LLVM 17.
1414

1515
## Usage
1616

‎llvm_config_linux_llvm18.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !byollvm && linux && !llvm14 && !llvm15 && !llvm16 && !llvm17
1+
//go:build !byollvm && linux && llvm18
22

33
package llvm
44

‎llvm_config_linux_llvm19.go

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//go:build !byollvm && linux && !llvm14 && !llvm15 && !llvm16 && !llvm17 && !llvm18
2+
3+
package llvm
4+
5+
// #cgo CPPFLAGS: -I/usr/include/llvm-19 -I/usr/include/llvm-c-19 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
6+
// #cgo CXXFLAGS: -std=c++17
7+
// #cgo LDFLAGS: -L/usr/lib/llvm-19/lib -lLLVM-19
8+
import "C"
9+
10+
type run_build_sh int

0 commit comments

Comments
 (0)