Prep work for overriding sysroot

The idea here is to make auto-discovery optional, and to allow to set
the path to sysroot directly. This is handy for JSON projects.
This commit is contained in:
Aleksey Kladov 2020-08-25 17:00:08 +02:00
parent 81a3404d8f
commit 6b8bc132dc
2 changed files with 61 additions and 54 deletions

View file

@ -561,5 +561,5 @@ fn utf8_stdout(mut cmd: Command) -> Result<String> {
}
}
let stdout = String::from_utf8(output.stdout)?;
Ok(stdout)
Ok(stdout.trim().to_string())
}