Skip to content

Commit 31afdad

Browse files
committed
---
yaml --- r: 235191 b: refs/heads/stable c: ae0eb67 h: refs/heads/master i: 235189: 781cf73 235187: d71c9f0 235183: 5052f9d v: v3
1 parent b5fe92f commit 31afdad

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 91c22b63020e15908859b11bfe777d65bc55aa98
32+
refs/heads/stable: ae0eb675db97a57a63f941b29754d8e32040ecc9
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libstd/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
#![cfg_attr(windows, feature(str_utf16))]
152152
#![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))]
153153
#![cfg_attr(test, feature(test, rustc_private, float_consts))]
154+
#![cfg_attr(target_env = "msvc", feature(link_args))]
154155

155156
// Don't link to std. We are std.
156157
#![no_std]

branches/stable/src/libstd/sys/windows/thread_local.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ unsafe fn unregister_dtor(key: Key) -> bool {
221221
//
222222
// # The article mentions crazy stuff about "/INCLUDE"?
223223
//
224-
// It sure does! This seems to work for now, so maybe we'll just run into
225-
// that if we start linking with msvc?
224+
// It sure does! We include it below for MSVC targets, but it look like for GNU
225+
// targets we don't require it.
226226

227227
#[link_section = ".CRT$XLB"]
228228
#[linkage = "external"]
@@ -231,6 +231,10 @@ pub static p_thread_callback: unsafe extern "system" fn(LPVOID, DWORD,
231231
LPVOID) =
232232
on_tls_callback;
233233

234+
#[cfg(target_env = "msvc")]
235+
#[link_args = "/INCLUDE:_tls_used"]
236+
extern {}
237+
234238
#[allow(warnings)]
235239
unsafe extern "system" fn on_tls_callback(h: LPVOID,
236240
dwReason: DWORD,

0 commit comments

Comments
 (0)