Skip to content

Commit

Permalink
Fix macOS cross compiling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 4, 2022
1 parent 4b65ad8 commit cc5946e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ pub fn cross_compiling(
let cross_lib_dir = env_var("PYO3_CROSS_LIB_DIR");
let cross_python_version = env_var("PYO3_CROSS_PYTHON_VERSION");

let target_triple = format!("{}-{}-{}", target_arch, target_vendor, target_os);
let target_triple = cargo_env_var("TARGET").ok_or("expected TARGET env var")?;

if cross.is_none() && cross_lib_dir.is_none() && cross_python_version.is_none() {
// No cross-compiling environment variables set; try to determine if this is a known case
Expand Down

0 comments on commit cc5946e

Please sign in to comment.