Skip to content

Commit

Permalink
Try to search for Python3 first and then Python
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst committed Mar 15, 2021
1 parent bb40cd7 commit 21bb994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shaderc-sys/build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ fn main() {
finder.must_have("cmake");
finder.must_have("git");
finder
.maybe_have("python")
.or(finder.maybe_have("python3"))
.maybe_have("python3")
.or(finder.maybe_have("python"))
.unwrap_or_else(|| {
panic!("Build requires one of `python` or `python3`");
panic!("Build requires one of `python3` or `python`");
});

let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
Expand Down

0 comments on commit 21bb994

Please sign in to comment.