Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
os: [windows-latest, ubuntu-latest]
rust_version: [stable]
build_flags: ["", "--features double-precision", "--features object-layer-u32", "--all-features"]
exclude:
- os: ubuntu-latest
# exclude:
# - os: ubuntu-latest

runs-on: ${{ matrix.os }}
name: Tests - ${{ matrix.os }} ${{ matrix.rust_version }} ${{ matrix.build_flags }}
Expand Down
4 changes: 4 additions & 0 deletions crates/hello-world-sys/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
println!("cargo:rustc-link-lib=Jolt");
println!("cargo:rustc-link-lib=joltc");
}
4 changes: 4 additions & 0 deletions crates/hello-world/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
println!("cargo:rustc-link-lib=Jolt");
println!("cargo:rustc-link-lib=joltc");
}
5 changes: 3 additions & 2 deletions crates/joltc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ fn main() {
let flags = build_flags();

build_joltc();
link();
generate_bindings(&flags).unwrap();
}

Expand Down Expand Up @@ -68,6 +67,8 @@ fn build_joltc() {
dst.push("lib64");
println!("cargo:rustc-link-search=native={}", dst.display());

link();

// On macOS and Linux, we need to explicitly link against the C++ standard
// library here to avoid getting missing symbol errors from Jolt/JoltC.
if cfg!(target_os = "macos") {
Expand All @@ -80,8 +81,8 @@ fn build_joltc() {
}

fn link() {
println!("cargo:rustc-link-lib=Jolt");
println!("cargo:rustc-link-lib=joltc");
println!("cargo:rustc-link-lib=Jolt");
}

/// Generate build flags specifically for generating bindings.
Expand Down