Skip to content

Commit 4955947

Browse files
committed
Only run no-allocation-before-main on linux-gnu.
1 parent daf2b32 commit 4955947

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ui/runtime/no-allocation-before-main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
//! The initial runtime should not allocate for performance/binary size reasons.
44
//!
55
//! -Cprefer-dynamic=no is required as otherwise #[global_allocator] does nothing.
6+
//! We only test linux-gnu as other targets currently need allocation for thread dtors.
67
//@ run-pass
78
//@ compile-flags: -Cprefer-dynamic=no
9+
//@ only-linux
10+
//@ only-gnu
811

912
#[allow(dead_code)]
1013
#[path = "aborting-alloc.rs"]

0 commit comments

Comments
 (0)