Skip to content

Commit

Permalink
Change default python lib name for Windows when cross compiling
Browse files Browse the repository at this point in the history
Stop treating `gnu` abi as mingw by default.
  • Loading branch information
messense committed May 11, 2022
1 parent 1340582 commit 5fe78f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyo3-build-config/src/impl_.rs
Expand Up @@ -1391,13 +1391,11 @@ fn default_cross_compile(cross_compile_config: &CrossCompileConfig) -> Result<In
.unwrap_or(PythonImplementation::CPython);

let lib_name = if cross_compile_config.target.operating_system == OperatingSystem::Windows {
let mingw = cross_compile_config.target.environment == Environment::Gnu;

Some(default_lib_name_windows(
version,
implementation,
abi3,
mingw,
false,
))
} else if is_linking_libpython_for_target(&cross_compile_config.target) {
Some(default_lib_name_unix(version, implementation, None))
Expand Down

0 comments on commit 5fe78f2

Please sign in to comment.