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.
1 parent d564020 commit 28d60d9Copy full SHA for 28d60d9
scudo-sys/build.rs
@@ -34,18 +34,17 @@ fn main() {
34
}
35
});
36
37
+ // Opt level is inferred from Cargo and environment variables.
38
cc::Build::new()
39
.files(scudo_cpp_files)
40
.file(SCUDO_RUST_WRAPPER)
41
.include(scudo_dir)
42
.include(scudo_dir.join("include"))
43
.cpp(true)
44
.pic(true) // Position Independent Code.
45
+ .flag("-pthread")
46
+ .flag_if_supported("-std=c++17")
47
+ .flag_if_supported("-msse4.2")
48
.shared_flag(true)
49
.compile("scudo");
-
- // Opt level is inferred from Cargo and environment variables.
- // TODO(cneo): -pthread -msse -std=c++17? Those flags are present at:
50
- // https://llvm.org/docs/ScudoHardenedAllocator.html#library
51
0 commit comments