We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fd19f commit 48bfae0Copy full SHA for 48bfae0
build.rs
@@ -60,7 +60,11 @@ pub fn find_executable(name: &str) -> Option<PathBuf> {
60
let cmd = Command::new(WHICH).arg(name).output().ok()?;
61
if cmd.status.success() {
62
let stdout = String::from_utf8_lossy(&cmd.stdout);
63
- Some(stdout.trim().into())
+ stdout
64
+ .trim()
65
+ .lines()
66
+ .next()
67
+ .map(|l| l.trim().into())
68
} else {
69
None
70
}
0 commit comments