Skip to content

Commit 1733cfb

Browse files
committed
build: don't force a specific compiler/version
1 parent a4bf2a7 commit 1733cfb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

build.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ fn main() {
120120

121121
let compile_target_arch = env::var("CARGO_CFG_TARGET_ARCH").expect("CARGO_CFG_TARGET_ARCH");
122122
let compile_target_os = env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS");
123-
let compile_target_env = env::var("CARGO_CFG_TARGET_ENV").expect("CARGO_CFG_TARGET_ENV");
124123
let compile_target_feature = env::var("CARGO_CFG_TARGET_FEATURE");
125124
// Except for Emscripten target (which emulates POSIX environment), compile to Wasm via WASI SDK
126125
// which is currently the only standalone provider of stdlib for compilation of C/C++ libraries.
@@ -174,8 +173,6 @@ fn main() {
174173
println!("cargo:rustc-link-lib=c");
175174
build.file("./deps/wasi_to_unknown.cpp");
176175
}
177-
} else if !(compile_target_os == "windows" && compile_target_env == "msvc") {
178-
build.compiler("clang++");
179176
}
180177

181178
let compiler = build.get_compiler();

0 commit comments

Comments
 (0)