about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-29 23:28:39 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-07-01 09:35:55 -0700
commitae0eb675db97a57a63f941b29754d8e32040ecc9 (patch)
tree247e31e2ced1bc9463014f95afee0dd05f383840 /src/libstd/lib.rs
parent91c22b63020e15908859b11bfe777d65bc55aa98 (diff)
downloadrust-ae0eb675db97a57a63f941b29754d8e32040ecc9.tar.gz
rust-ae0eb675db97a57a63f941b29754d8e32040ecc9.zip
msvc: Fix TLS destructors
Just like the original article our Windows TLS support is based on predicted,
this symbol must be linked in on MSVC to pull in the necessary support for TLS
variables. This commit fixes a number of unit tests which require that TLS
destructors are run.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 21172918177..73e45619774 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -151,6 +151,7 @@
 #![cfg_attr(windows, feature(str_utf16))]
 #![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))]
 #![cfg_attr(test, feature(test, rustc_private, float_consts))]
+#![cfg_attr(target_env = "msvc", feature(link_args))]
 
 // Don't link to std. We are std.
 #![no_std]