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 41eef58
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
llvm: [14, 15, 16, 17, 18]
llvm: [14, 15, 16, 17, 18, 19]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -52,6 +52,6 @@ jobs:
run:
go test -v -tags=llvm${{ matrix.llvm }}
- name: Test default LLVM
if: matrix.llvm == 18
if: matrix.llvm == 19
run:
go test -v
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 41eef58

Please sign in to comment.