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 bea6877 + 8750b63 commit 340e672Copy full SHA for 340e672
book/src/building.md
@@ -11,7 +11,8 @@ fn main() {
11
let path = std::path::PathBuf::from("src"); // include path
12
let mut b = autocxx_build::Builder::new("src/main.rs", &[&path])
13
.extra_clang_args(&["-std=c++17"])
14
- .expect_build();
+ .build()
15
+ .unwrap();
16
b.flag_if_supported("-std=c++17") // use "-std:c++17" here if using msvc on windows
17
.compile("autocxx-demo"); // arbitrary library name, pick anything
18
println!("cargo:rerun-if-changed=src/main.rs");
0 commit comments