You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#127999 - ChrisDenton:arm32, r=Amanieu
Inject arm32 shims into Windows metadata generation
I had been keen to eventually move to using windows-sys as a normal Cargo dependency. But for linking, compile times and other reasons that's unlikely to ever happen.
So if we're sticking with generated bindings then injecting any necessary missing type definitions (i.e. for the MS unsupported arm32) is simpler than defining whole functions ourselves just because we need to manually implement those types on a tier 3 platform. This also reduces the places we need to change when making changes to how we use `#[link]`.
r? libs
Copy file name to clipboardexpand all lines: library/std/src/sys/pal/windows/c.rs
-41
Original file line number
Diff line number
Diff line change
@@ -276,44 +276,3 @@ compat_fn_with_fallback! {
276
276
Statusasu32
277
277
}
278
278
}
279
-
280
-
// # Arm32 shim
281
-
//
282
-
// AddVectoredExceptionHandler and WSAStartup use platform-specific types.
283
-
// However, Microsoft no longer supports thumbv7a so definitions for those targets
284
-
// are not included in the win32 metadata. We work around that by defining them here.
285
-
//
286
-
// Where possible, these definitions should be kept in sync with https://docs.rs/windows-sys
0 commit comments