Skip to content

Commit

Permalink
WIP use LLVM 19
Browse files Browse the repository at this point in the history
  • Loading branch information
aykevl committed Aug 25, 2024
1 parent aaff3eb commit c74eb6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ This library provides bindings to a system-installed LLVM.

Currently supported:

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

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

## Usage

Expand Down
2 changes: 1 addition & 1 deletion llvm_config_linux_llvm18.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !byollvm && linux && !llvm14 && !llvm15 && !llvm16 && !llvm17
//go:build !byollvm && linux && llvm18

package llvm

Expand Down
10 changes: 10 additions & 0 deletions llvm_config_linux_llvm19.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//go:build !byollvm && linux && !llvm14 && !llvm15 && !llvm16 && !llvm17 && !llvm18

package llvm

// #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
// #cgo CXXFLAGS: -std=c++17
// #cgo LDFLAGS: -L/usr/lib/llvm-19/lib -lLLVM-19
import "C"

type run_build_sh int

0 comments on commit c74eb6f

Please sign in to comment.