Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lib_dir when cross compiling #4389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Thalyum
Copy link

@Thalyum Thalyum commented Jul 28, 2024

This PR suggests a fix for #4350 , where a linker option was incorrect when cross-compiling. Change a bit the creation of the InterpreterConfig in case of cross compilation in pyo3-build-config, to take the value of PYO3_CROSS_LIB_DIR in priority if set, instead of the value provided by the sysconfigdata.

Ref: (#4350)

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, and sorry for the very slow reply. I think your analysis is correct, in particular as it matches the documented behaviour.

I think let's move forward with this as per my suggestion below 👍

pyo3-build-config/src/impl_.rs Outdated Show resolved Hide resolved
@Thalyum
Copy link
Author

Thalyum commented Oct 13, 2024

I will rebase and follow the required steps for contributing

@Thalyum Thalyum marked this pull request as ready for review October 13, 2024 16:40
@Thalyum Thalyum changed the title RFC: Fix lib_dir when cross compiling Fix lib_dir when cross compiling Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants