mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Auto merge of #137192 - kornelski:windows-tls-lto, r=ChrisDenton
Remove obsolete Windows ThinLTO+TLS workaround The bug #109797 has been fixed by #129079, so this workaround is no longer needed.
This commit is contained in:
commit
9f48dedc97
@ -28,9 +28,7 @@ pub macro thread_local_inner {
|
||||
// user provided type or type alias with a matching name. Please update the shadowing test
|
||||
// in `tests/thread.rs` if these types are renamed.
|
||||
unsafe {
|
||||
// Inlining does not work on windows-gnu due to linking errors around
|
||||
// dllimports. See https://github.com/rust-lang/rust/issues/109797.
|
||||
$crate::thread::LocalKey::new(#[cfg_attr(windows, inline(never))] |init| {
|
||||
$crate::thread::LocalKey::new(|init| {
|
||||
static VAL: $crate::thread::local_impl::Storage<$t>
|
||||
= $crate::thread::local_impl::Storage::new();
|
||||
VAL.get(init, __init)
|
||||
|
Loading…
Reference in New Issue
Block a user