We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20e57c5 + cf0ec8a commit ce97662Copy full SHA for ce97662
build.rs
@@ -8,8 +8,13 @@ fn main() {
8
9
println!("cargo:rustc-link-search=native={}", custom_lib_dir);
10
println!("cargo:rustc-link-lib=static={}", custom_lib_name);
11
- /* FIXME: this is assuming a C++ fuzzer, but should be customizable */
12
- println!("cargo:rustc-link-lib=stdc++");
+
+ match std::env::var("CUSTOM_LIBFUZZER_STD_CXX") {
13
+ // Default behavior for backwards compat.
14
+ Err(_) => println!("cargo:rustc-link-lib=stdc++"),
15
+ Ok(s) if s == "none" => (),
16
+ Ok(s) => println!("cargo:rustc-link-lib={}", s),
17
+ }
18
} else {
19
let mut build = cc::Build::new();
20
let sources = ::std::fs::read_dir("libfuzzer")
0 commit comments