Skip to content

Commit e672eee

Browse files
committed
Show a better message when xcrun is missing
Closes #560
1 parent c668e9e commit e672eee

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/lib.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,14 +2555,13 @@ impl Build {
25552555
return Ok(ret.clone());
25562556
}
25572557

2558-
let sdk_path = self
2559-
.cmd("xcrun")
2560-
.arg("--show-sdk-path")
2561-
.arg("--sdk")
2562-
.arg(sdk)
2563-
.stderr(Stdio::inherit())
2564-
.output()?
2565-
.stdout;
2558+
let sdk_path = run_output(
2559+
self.cmd("xcrun")
2560+
.arg("--show-sdk-path")
2561+
.arg("--sdk")
2562+
.arg(sdk),
2563+
"xcrun",
2564+
)?;
25662565

25672566
let sdk_path = match String::from_utf8(sdk_path) {
25682567
Ok(p) => p,

0 commit comments

Comments
 (0)