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

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

Thalyum
Copy link
Contributor

@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 Thalyum force-pushed the fix/cross-compile-libdir branch from 49dbfab to d604061 Compare October 13, 2024 09:24
@Thalyum
Copy link
Contributor Author

Thalyum commented Oct 13, 2024

I will rebase and follow the required steps for contributing

@Thalyum Thalyum force-pushed the fix/cross-compile-libdir branch from d604061 to 3060d24 Compare October 13, 2024 16:39
@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
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 👍

@davidhewitt davidhewitt added this pull request to the merge queue Oct 18, 2024
@davidhewitt davidhewitt removed this pull request from the merge queue due to a manual request Oct 18, 2024
@davidhewitt davidhewitt added this pull request to the merge queue Oct 18, 2024
Merged via the queue into PyO3:main with commit dc415fa Oct 18, 2024
43 of 44 checks passed
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