@@ -209,13 +209,13 @@ macro_rules! intrinsics {
209209
210210 $( $rest: tt) *
211211 ) => (
212- #[ cfg( all( windows, target_arch = "x86_64" ) ) ]
212+ #[ cfg( all( any ( windows, target_os = "uefi" ) , target_arch = "x86_64" ) ) ]
213213 $( #[ $( $attr) * ] ) *
214214 pub extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
215215 $( $body) *
216216 }
217217
218- #[ cfg( all( windows, target_arch = "x86_64" ) ) ]
218+ #[ cfg( all( any ( windows, target_os = "uefi" ) , target_arch = "x86_64" ) ) ]
219219 pub mod $name {
220220 #[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
221221 pub extern $abi fn $name( $( $argname: $ty) ,* )
@@ -226,7 +226,7 @@ macro_rules! intrinsics {
226226 }
227227 }
228228
229- #[ cfg( not( all( windows, target_arch = "x86_64" ) ) ) ]
229+ #[ cfg( not( all( any ( windows, target_os = "uefi" ) , target_arch = "x86_64" ) ) ) ]
230230 intrinsics! {
231231 $( #[ $( $attr) * ] ) *
232232 pub extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
@@ -426,7 +426,7 @@ macro_rules! intrinsics {
426426
427427// Hack for LLVM expectations for ABI on windows. This is used by the
428428// `#[win64_128bit_abi_hack]` attribute recognized above
429- #[ cfg( all( windows, target_pointer_width = "64" ) ) ]
429+ #[ cfg( all( any ( windows, target_os = "uefi" ) , target_pointer_width = "64" ) ) ]
430430pub mod win64_128bit_abi_hack {
431431 #[ repr( simd) ]
432432 pub struct U64x2 ( u64 , u64 ) ;
0 commit comments