Skip to content

Commit

Permalink
fix: use PYO3_CROSS_LIB_DIR value as lib_dir when cross-compiling (#4350
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Paul-Erwan RIO committed Oct 13, 2024
1 parent 5fc5df4 commit d604061
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,10 @@ fn cross_compile_from_sysconfigdata(
) -> Result<Option<InterpreterConfig>> {
if let Some(path) = find_sysconfigdata(cross_compile_config)? {
let data = parse_sysconfigdata(path)?;
let config = InterpreterConfig::from_sysconfigdata(&data)?;
let mut config = InterpreterConfig::from_sysconfigdata(&data)?;
if let Some(cross_lib_dir) = cross_compile_config.lib_dir_string() {
config.lib_dir = Some(cross_lib_dir)
}

Ok(Some(config))
} else {
Expand Down

0 comments on commit d604061

Please sign in to comment.