std: Fix compiling the standard library on i686-MSVC
This commit fixes building the standard library with the `i686-pc-windows-msvc` target by correcting an included symbol name to the linker.
This commit is contained in:
parent
7cb157e74d
commit
24c5e49275
1 changed files with 4 additions and 1 deletions
|
@ -231,9 +231,12 @@ pub static p_thread_callback: unsafe extern "system" fn(LPVOID, DWORD,
|
|||
LPVOID) =
|
||||
on_tls_callback;
|
||||
|
||||
#[cfg(target_env = "msvc")]
|
||||
#[cfg(all(target_env = "msvc", target_pointer_width = "64"))]
|
||||
#[link_args = "/INCLUDE:_tls_used"]
|
||||
extern {}
|
||||
#[cfg(all(target_env = "msvc", target_pointer_width = "32"))]
|
||||
#[link_args = "/INCLUDE:__tls_used"]
|
||||
extern {}
|
||||
|
||||
#[allow(warnings)]
|
||||
unsafe extern "system" fn on_tls_callback(h: LPVOID,
|
||||
|
|
Loading…
Reference in a new issue