diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-25 19:18:53 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-07-02 12:17:26 +0200 |
| commit | 1bd9a132f6111b77348b8014b849b056a4f6759a (patch) | |
| tree | 473db1da917aa5152dad7104fed1d18d431ec7fc | |
| parent | dd1419a1c4843ef306f7c5955b93f601d8da2341 (diff) | |
| download | rust-1bd9a132f6111b77348b8014b849b056a4f6759a.tar.gz rust-1bd9a132f6111b77348b8014b849b056a4f6759a.zip | |
Only test global_asm on x86_64
| -rw-r--r-- | example/mini_core_hello_world.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index 6570f2bf9f2..d997ce6d1b3 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -292,7 +292,7 @@ fn main() { #[cfg(not(any(jit, windows)))] test_tls(); - #[cfg(all(not(jit), target_os = "linux"))] + #[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))] unsafe { global_asm_test(); } @@ -303,12 +303,12 @@ fn main() { assert_eq!(*REF1, *REF2); } -#[cfg(all(not(jit), target_os = "linux"))] +#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))] extern "C" { fn global_asm_test(); } -#[cfg(all(not(jit), target_os = "linux"))] +#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))] global_asm! { " .global global_asm_test |
