0
0
Fork 0
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:
CGQAQ 2023-09-07 13:07:27 +08:00
parent 4cf545b925
commit b95c5c3946

View file

@ -679,7 +679,13 @@ fn gn() -> String {
* variable or defaulting to `python3`. * variable or defaulting to `python3`.
*/ */
fn python() -> String { 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)>; type NinjaEnv = Vec<(String, String)>;