Support cross-compiling to Windows using MinGW

This commit is contained in:
bjorn3 2020-05-25 21:43:22 +02:00
parent c825bc8e61
commit 1122f42e28
7 changed files with 82 additions and 22 deletions

View file

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