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 0b6a9c5Copy full SHA for 0b6a9c5
build.rs
@@ -60,7 +60,12 @@ 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
+ .replace('\r', "")
66
+ .lines()
67
+ .next()
68
+ .map(|l| l.trim().into())
69
} else {
70
None
71
}
0 commit comments