Skip to content

Commit 0a15c9b

Browse files
danielframptonalexcrichton
authored andcommitted
Don't modify the intrinsic abi for aarch64 windows (rust-lang#337)
1 parent d7191b1 commit 0a15c9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Jorge Aparicio <japaricious@gmail.com>"]
33
name = "compiler_builtins"
4-
version = "0.1.23"
4+
version = "0.1.24"
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-lang/compiler-builtins"

src/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ macro_rules! intrinsics {
165165

166166
$($rest:tt)*
167167
) => (
168-
#[cfg(all(windows, target_pointer_width = "64"))]
168+
#[cfg(all(windows, target_arch = "x86_64"))]
169169
$(#[$($attr)*])*
170170
pub extern $abi fn $name( $($argname: $ty),* ) -> $ret {
171171
$($body)*
172172
}
173173

174-
#[cfg(all(windows, target_pointer_width = "64"))]
174+
#[cfg(all(windows, target_arch = "x86_64"))]
175175
pub mod $name {
176176

177177
intrinsics! {
@@ -184,7 +184,7 @@ macro_rules! intrinsics {
184184
}
185185
}
186186

187-
#[cfg(not(all(windows, target_pointer_width = "64")))]
187+
#[cfg(not(all(windows, target_arch = "x86_64")))]
188188
intrinsics! {
189189
$(#[$($attr)*])*
190190
pub extern $abi fn $name( $($argname: $ty),* ) -> $ret {

0 commit comments

Comments
 (0)