File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use core::intrinsics;
8
8
// NOTE These functions are never mangled as they are not tested against compiler-rt
9
9
// and mangling ___chkstk would break the `jmp ___chkstk` instruction in __alloca
10
10
11
- #[ cfg( windows) ]
11
+ #[ cfg( all ( windows, target_env = "gnu" ) ) ]
12
12
#[ naked]
13
13
#[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
14
14
pub unsafe fn ___chkstk_ms ( ) {
@@ -32,7 +32,7 @@ pub unsafe fn ___chkstk_ms() {
32
32
intrinsics:: unreachable ( ) ;
33
33
}
34
34
35
- #[ cfg( windows) ]
35
+ #[ cfg( all ( windows, target_env = "gnu" ) ) ]
36
36
#[ naked]
37
37
#[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
38
38
pub unsafe fn __alloca ( ) {
@@ -41,7 +41,7 @@ pub unsafe fn __alloca() {
41
41
intrinsics:: unreachable ( ) ;
42
42
}
43
43
44
- #[ cfg( windows) ]
44
+ #[ cfg( all ( windows, target_env = "gnu" ) ) ]
45
45
#[ naked]
46
46
#[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
47
47
pub unsafe fn ___chkstk ( ) {
You can’t perform that action at this time.
0 commit comments