Skip to content

Commit

Permalink
Terminate if configure.py failed
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Sep 28, 2020
1 parent 5c83aa5 commit 7a76430
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion botan-src/src/lib.rs
Expand Up @@ -108,11 +108,14 @@ fn configure(build_dir: &str) {
add_env_arg!(configure, "BOTAN_CONFIGURE_LIBDIR", "--libdir", false);
add_env_arg!(configure, "BOTAN_CONFIGURE_MANDIR", "--mandir", false);
add_env_arg!(configure, "BOTAN_CONFIGURE_INCLUDEDIR", "--includedir", false);
configure
let status = configure
.spawn()
.expect(BUILD_ERROR_MSG)
.wait()
.expect(BUILD_ERROR_MSG);
if !status.success() {
panic!("configure terminated unsuccessfully");
}
}

fn make(build_dir: &str) {
Expand Down

0 comments on commit 7a76430

Please sign in to comment.