mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update python detection in codegen (#31873)
* Update python detection in codegen * Update build.rs
This commit is contained in:
parent
f8a2eaea47
commit
58f170c97a
1 changed files with 2 additions and 2 deletions
|
@ -67,9 +67,9 @@ impl<'a> phf_shared::PhfHash for Bytes<'a> {
|
|||
fn find_python() -> String {
|
||||
env::var("PYTHON3").ok().unwrap_or_else(|| {
|
||||
let candidates = if cfg!(windows) {
|
||||
["python3.8.exe", "python38.exe", "python.exe"]
|
||||
["python.exe", "python"]
|
||||
} else {
|
||||
["python3.8", "python3", "python"]
|
||||
["python3", "python"]
|
||||
};
|
||||
for &name in &candidates {
|
||||
if Command::new(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue