aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.rs
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-07-10 19:28:19 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-07-10 19:28:19 +0200
commitbd9bce8531b5d694930a47bad17cbcd2f0a3d4de (patch)
tree0fdb77cf84b748fc068e46ed28f35304d8aef0f8 /build.rs
parente4af1ea3b61c8e0a008a348df4b4061e5365b467 (diff)
downloadmini-kvm-rs-bd9bce8531b5d694930a47bad17cbcd2f0a3d4de.tar.gz
mini-kvm-rs-bd9bce8531b5d694930a47bad17cbcd2f0a3d4de.zip
build.rs: raise make error
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 98d7c88..fa1bef2 100644
--- a/build.rs
+++ b/build.rs
@@ -22,4 +22,8 @@ fn main() {
.output()
.unwrap();
std::io::stdout().write_all(&o.stdout).unwrap();
+ std::io::stderr().write_all(&o.stderr).unwrap();
+
+ // Ensure `make` was successfull.
+ assert!(o.status.success());
}