Skip to content

Commit

Permalink
Explicitly use clang for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed Oct 29, 2024
1 parent 4790821 commit 776d8d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ fn main() {
let mut build = cxx_build::bridge("src/lib.rs");


build.compiler("clang++");
build.std("c++20");
build.flag("-Wno-everything");
build.flag("-stdlib=libc++");
build.files(kdu_coresys_sources.map(|path| kdu_root.join(path)));
build.includes(kdu_includes.map(|path| kdu_root.join(path)));
build.define("KDU_SIMD_OPTIMIZATIONS", None);
Expand Down Expand Up @@ -149,8 +149,6 @@ fn main() {
}

println!("cargo::rerun-if-changed=src/lib.rs");
println!("cargo::rustc-link-lib=c++abi");
println!("cargo::rustc-link-lib=c++");

build.compile("kaduceus");
}

0 comments on commit 776d8d9

Please sign in to comment.