Skip to content

Commit

Permalink
libmstpm: simplify make invocation
Browse files Browse the repository at this point in the history
We don't care about the output, we only care about the status.

Signed-off-by: Tom Dohrmann <[email protected]>
  • Loading branch information
Freax13 committed Oct 28, 2024
1 parent b15e4b7 commit d29f6bf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libmstpm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ use std::process::Command;
use std::process::Stdio;

fn main() {
let output = Command::new("make")
// Build libmstpm.
let status = Command::new("make")
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.output()
.status()
.unwrap();

if !output.status.success() {
panic!();
}
assert!(status.success());

// Tell cargo to link libmstpm and where to find it.
let out_dir = std::env::var("OUT_DIR").unwrap();
Expand Down

0 comments on commit d29f6bf

Please sign in to comment.