-
Notifications
You must be signed in to change notification settings - Fork 13k
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
windows-sys generated WinAPI bindings break ARM platforms #112265
Comments
Unfortunately, 32-bit ARM is not being supported by Microsoft going forward. What we could do is insert our own definitions in the prelude, copied from before the changes. |
Iirc, the |
I think you are correct. I can reproduce the link errors with toolchain |
Oh wait, as staticlib? You currently need to make sure to link all the libraries it depends on. You can get them using |
This will fail Windows App Cert Kit tests. |
In that case I'm surprised that lazy loading worked. |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-low |
Fix ntdll linkage issues on Windows UWP platforms See discussion: rust-lang#112265 (comment) Static loading `ntdll` functions does not work for UWP programs, which will end up link errors complaining about missing symbols, or failure to pass the WACK tests. The breakage was introduced in rust-lang#108262. This PR basically reverts part of the changes in rust-lang#108262 for UWP only, and fixes some lint suggestions.
Fix ntdll linkage issues on Windows UWP platforms See discussion: rust-lang/rust#112265 (comment) Static loading `ntdll` functions does not work for UWP programs, which will end up link errors complaining about missing symbols, or failure to pass the WACK tests. The breakage was introduced in #108262. This PR basically reverts part of the changes in #108262 for UWP only, and fixes some lint suggestions.
In #110152 the WinAPI definitions have been replaced by windows-bindgen generated bindings. However, the win32metadata project does not generate metadata for ARM32-specific items, hence the generated bindings lack a few types like
CONTEXT
andWSADATA
on this platform. It effectively breaksthumbv7a-*-windows-*
for Rust.@ChrisDenton
The text was updated successfully, but these errors were encountered: