From be5c26098f3cec1679dbb453d22542c9a7b10902 Mon Sep 17 00:00:00 2001 From: ju1ius Date: Fri, 2 Feb 2024 02:49:35 +0100 Subject: [PATCH] build: don't force a specific compiler/version (#60) --- build.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.rs b/build.rs index 8c3911a..9682001 100644 --- a/build.rs +++ b/build.rs @@ -114,14 +114,12 @@ fn main() { let mut build = cc::Build::new(); build .file("./deps/ada.cpp") - .include("./deps/ada.h") - .include("./deps/ada_c.h") + .include("./deps") .cpp(true) .std("c++17"); let compile_target_arch = env::var("CARGO_CFG_TARGET_ARCH").expect("CARGO_CFG_TARGET_ARCH"); let compile_target_os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS"); - let compile_target_env = env::var("CARGO_CFG_TARGET_ENV").expect("CARGO_CFG_TARGET_ENV"); let compile_target_feature = env::var("CARGO_CFG_TARGET_FEATURE"); // Except for Emscripten target (which emulates POSIX environment), compile to Wasm via WASI SDK // which is currently the only standalone provider of stdlib for compilation of C/C++ libraries. @@ -175,8 +173,6 @@ fn main() { println!("cargo:rustc-link-lib=c"); build.file("./deps/wasi_to_unknown.cpp"); } - } else if !(compile_target_os == "windows" && compile_target_env == "msvc") { - build.compiler("clang++"); } let compiler = build.get_compiler();