We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f9b624 commit 8eac360Copy full SHA for 8eac360
build.rs
@@ -5,16 +5,18 @@ use std::process::Command;
5
fn main() {
6
#[cfg(feature = "llvm")]
7
{
8
- Command::new("make")
+ let status = Command::new("make")
9
.args(["-C", "stdlib"])
10
- .output()
11
- .expect("Could not build stdlib");
+ .status()
+ .expect("could not execute make");
12
+ assert!(status.success(), "building stdlib failed");
13
14
// compile our linker
15
let cxxflags = Command::new("llvm-config")
16
.args(["--cxxflags"])
17
.output()
18
.expect("could not execute llvm-config");
19
+ assert!(cxxflags.status.success(), "llvm-config failed");
20
21
let cxxflags = String::from_utf8(cxxflags.stdout).unwrap();
22
0 commit comments