Skip to content

Commit 1bd9a13

Browse files
committed
Only test global_asm on x86_64
1 parent dd1419a commit 1bd9a13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/mini_core_hello_world.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ fn main() {
292292
#[cfg(not(any(jit, windows)))]
293293
test_tls();
294294

295-
#[cfg(all(not(jit), target_os = "linux"))]
295+
#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))]
296296
unsafe {
297297
global_asm_test();
298298
}
@@ -303,12 +303,12 @@ fn main() {
303303
assert_eq!(*REF1, *REF2);
304304
}
305305

306-
#[cfg(all(not(jit), target_os = "linux"))]
306+
#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))]
307307
extern "C" {
308308
fn global_asm_test();
309309
}
310310

311-
#[cfg(all(not(jit), target_os = "linux"))]
311+
#[cfg(all(not(jit), target_arch = "x86_64", target_os = "linux"))]
312312
global_asm! {
313313
"
314314
.global global_asm_test

0 commit comments

Comments
 (0)