Skip to content

Commit

Permalink
support llvm versions 14-17 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins authored Jul 10, 2024
1 parent b427470 commit 8ca7554
Show file tree
Hide file tree
Showing 6 changed files with 289 additions and 228 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,29 @@ jobs:

unit-tests:
name: Tests - ${{ matrix.os }} - ${{ matrix.toolchain }} - ${{ matrix.llvm }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
llvm:
- "14"
- "15"
- "16"
- "17"
toolchain:
- stable
os:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- toolchain: beta
os: ubuntu-latest
llvm: "14"
- toolchain: nightly
os: ubuntu-latest
llvm: "14"
- toolchain: stable
os: macos-13
llvm: "14"


steps:
- uses: actions/checkout@v4
Expand Down
28 changes: 1 addition & 27 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ name = "diffsl"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
llvm4-0 = ["inkwell-40", "llvm-sys-40"]
llvm5-0 = ["inkwell-50", "llvm-sys-50"]
llvm6-0 = ["inkwell-60", "llvm-sys-60"]
llvm7-0 = ["inkwell-70", "llvm-sys-70"]
llvm8-0 = ["inkwell-80", "llvm-sys-80"]
llvm9-0 = ["inkwell-90", "llvm-sys-90"]
llvm10-0 = ["inkwell-100", "llvm-sys-100"]
llvm11-0 = ["inkwell-110", "llvm-sys-110"]
llvm12-0 = ["inkwell-120", "llvm-sys-120"]
llvm13-0 = ["inkwell-130", "llvm-sys-130"]
llvm14-0 = ["inkwell-140", "llvm-sys-140"]
llvm15-0 = ["inkwell-150", "llvm-sys-150"]
Expand All @@ -39,34 +30,17 @@ itertools = ">=0.10.3"
ouroboros = ">=0.17"
clap = { version = "4.3.23", features = ["derive"] }
uid = "0.1.7"
inkwell-40 = { package = "inkwell", version = ">=0.4.0", features = ["llvm4-0"], optional = true }
inkwell-50 = { package = "inkwell", version = ">=0.4.0", features = ["llvm5-0"], optional = true }
inkwell-60 = { package = "inkwell", version = ">=0.4.0", features = ["llvm6-0"], optional = true }
inkwell-70 = { package = "inkwell", version = ">=0.4.0", features = ["llvm7-0"], optional = true }
inkwell-80 = { package = "inkwell", version = ">=0.4.0", features = ["llvm8-0"], optional = true }
inkwell-90 = { package = "inkwell", version = ">=0.4.0", features = ["llvm9-0"], optional = true }
inkwell-100 = { package = "inkwell", version = ">=0.4.0", features = ["llvm10-0"], optional = true }
inkwell-110 = { package = "inkwell", version = ">=0.4.0", features = ["llvm11-0"], optional = true }
inkwell-120 = { package = "inkwell", version = ">=0.4.0", features = ["llvm12-0"], optional = true }
inkwell-130 = { package = "inkwell", version = ">=0.4.0", features = ["llvm13-0"], optional = true }
inkwell-140 = { package = "inkwell", version = ">=0.4.0", features = ["llvm14-0"], optional = true }
inkwell-150 = { package = "inkwell", version = ">=0.4.0", features = ["llvm15-0"], optional = true }
inkwell-160 = { package = "inkwell", version = ">=0.4.0", features = ["llvm16-0"], optional = true }
inkwell-170 = { package = "inkwell", version = ">=0.4.0", features = ["llvm17-0"], optional = true }
llvm-sys-40 = { package = "llvm-sys", version = "40.4", optional = true }
llvm-sys-50 = { package = "llvm-sys", version = "50.4", optional = true }
llvm-sys-60 = { package = "llvm-sys", version = "60.6", optional = true }
llvm-sys-70 = { package = "llvm-sys", version = "70.4", optional = true }
llvm-sys-80 = { package = "llvm-sys", version = "80.3", optional = true }
llvm-sys-90 = { package = "llvm-sys", version = "90.2.1", optional = true }
llvm-sys-100 = { package = "llvm-sys", version = "100.2.3", optional = true }
llvm-sys-110 = { package = "llvm-sys", version = "110.0.3", optional = true }
llvm-sys-120 = { package = "llvm-sys", version = "120.2.4", optional = true }
llvm-sys-130 = { package = "llvm-sys", version = "130.0.4", optional = true }
llvm-sys-140 = { package = "llvm-sys", version = "140.0.2", optional = true }
llvm-sys-150 = { package = "llvm-sys", version = "150.0.3", optional = true }
llvm-sys-160 = { package = "llvm-sys", version = "160.1.0", optional = true }
llvm-sys-170 = { package = "llvm-sys", version = "170.0.1", optional = true }
inkwell_internals = "0.9.0"

[build-dependencies]
cmake = "0.1.50"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ You can install DiffSL using cargo. You will need to indicate the llvm version y
cargo add diffsl --features llvm14-0
```

Other versions of llvm are also supported given by the features `llvm4-0`, `llvm5-0`, `llvm6-0`, `llvm7-0`, `llvm8-0`, `llvm9-0`, `llvm10-0`, `llvm11-0`, `llvm12-0`, `llvm13-0`, `llvm14-0`, `llvm15-0`, `llvm16-0`, `llvm17-0`.
Other versions of llvm are also supported given by the features `llvm13-0`, `llvm14-0`, `llvm15-0`, `llvm16-0`, `llvm17-0`.


Loading

0 comments on commit 8ca7554

Please sign in to comment.