Enable tls test on MSVC Windows

This commit is contained in:
bjorn3 2023-02-12 13:42:32 +00:00
parent 7b83e16d5b
commit 51ac38190f
2 changed files with 2 additions and 2 deletions

View File

@ -698,7 +698,7 @@ struct PanicLocation {
} }
#[no_mangle] #[no_mangle]
#[cfg(not(windows))] #[cfg(not(all(windows, target_env = "gnu")))]
pub fn get_tls() -> u8 { pub fn get_tls() -> u8 {
#[thread_local] #[thread_local]
static A: u8 = 42; static A: u8 = 42;

View File

@ -319,7 +319,7 @@ struct ExternTypeWrapper {
from_decimal_string(); from_decimal_string();
#[cfg(not(any(jit, windows)))] #[cfg(all(not(jit), not(all(windows, target_env = "gnu"))))]
test_tls(); test_tls();
#[cfg(all(not(jit), target_arch = "x86_64", any(target_os = "linux", target_os = "darwin")))] #[cfg(all(not(jit), target_arch = "x86_64", any(target_os = "linux", target_os = "darwin")))]