-
Notifications
You must be signed in to change notification settings - Fork 760
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
Add support for generating non-abi3 python import libraries for Windows targets #2364
Conversation
This is odd, I've already patched it to git dependency. @ravenexp Could you release a new version of |
Created PyO3/python3-dll-a#16 Edit: v0.2.2 is on crates.io now. |
|
Mirroring my concerns here because they also affect PyO3 PyO3/python3-dll-a#17 (comment) |
5fe78f2
to
ea37acb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mingw, | ||
false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is correct, because the other call site gets the mingw
flag value from the Python interpreter itself, not from the current Rust compile target, like I did above:
pyo3/pyo3-build-config/src/impl_.rs
Lines 258 to 265 in ea37acb
let lib_name = if cfg!(windows) { | |
default_lib_name_windows( | |
version, | |
implementation, | |
abi3, | |
map["mingw"].as_str() == "True", | |
) | |
} else { |
Stop treating `gnu` abi as mingw by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You folks have been doing some really cool stuff here, thanks so much for this!
Continuing from PyO3/python3-dll-a#12