Skip to content

Commit

Permalink
Enable tls test on MSVC Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 13, 2023
1 parent 7b83e16 commit 51ac381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/mini_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ struct PanicLocation {
}

#[no_mangle]
#[cfg(not(windows))]
#[cfg(not(all(windows, target_env = "gnu")))]
pub fn get_tls() -> u8 {
#[thread_local]
static A: u8 = 42;
Expand Down
2 changes: 1 addition & 1 deletion example/mini_core_hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ fn main() {

from_decimal_string();

#[cfg(not(any(jit, windows)))]
#[cfg(all(not(jit), not(all(windows, target_env = "gnu"))))]
test_tls();

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

0 comments on commit 51ac381

Please sign in to comment.