mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 15:04:33 -05:00
fix windows builds
This commit is contained in:
parent
4cf545b925
commit
b95c5c3946
1 changed files with 7 additions and 1 deletions
8
build.rs
8
build.rs
|
@ -679,7 +679,13 @@ fn gn() -> String {
|
|||
* variable or defaulting to `python3`.
|
||||
*/
|
||||
fn python() -> String {
|
||||
env::var("PYTHON").unwrap_or_else(|_| "python3".to_owned())
|
||||
env::var("PYTHON").unwrap_or_else(|_| {
|
||||
if cfg!(target_os = "windows") {
|
||||
"python".to_owned()
|
||||
} else {
|
||||
"python3".to_owned()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
type NinjaEnv = Vec<(String, String)>;
|
||||
|
|
Loading…
Reference in a new issue