Skip to content

Commit 340e672

Browse files
authored
Merge pull request #1420 from Turbo87/patch-2
book/building: Fix `expect_build()` call
2 parents bea6877 + 8750b63 commit 340e672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/src/building.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ fn main() {
1111
let path = std::path::PathBuf::from("src"); // include path
1212
let mut b = autocxx_build::Builder::new("src/main.rs", &[&path])
1313
.extra_clang_args(&["-std=c++17"])
14-
.expect_build();
14+
.build()
15+
.unwrap();
1516
b.flag_if_supported("-std=c++17") // use "-std:c++17" here if using msvc on windows
1617
.compile("autocxx-demo"); // arbitrary library name, pick anything
1718
println!("cargo:rerun-if-changed=src/main.rs");

0 commit comments

Comments
 (0)