Skip to content

Commit 51ac381

Browse files
committed
Enable tls test on MSVC Windows
1 parent 7b83e16 commit 51ac381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/mini_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ struct PanicLocation {
698698
}
699699

700700
#[no_mangle]
701-
#[cfg(not(windows))]
701+
#[cfg(not(all(windows, target_env = "gnu")))]
702702
pub fn get_tls() -> u8 {
703703
#[thread_local]
704704
static A: u8 = 42;

example/mini_core_hello_world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ fn main() {
319319

320320
from_decimal_string();
321321

322-
#[cfg(not(any(jit, windows)))]
322+
#[cfg(all(not(jit), not(all(windows, target_env = "gnu"))))]
323323
test_tls();
324324

325325
#[cfg(all(not(jit), target_arch = "x86_64", any(target_os = "linux", target_os = "darwin")))]

0 commit comments

Comments
 (0)