Skip to content

Commit 9ca22f2

Browse files
committed
---
yaml --- r: 223608 b: refs/heads/beta c: ae0eb67 h: refs/heads/master v: v3
1 parent fe1b25d commit 9ca22f2

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 91c22b63020e15908859b11bfe777d65bc55aa98
26+
refs/heads/beta: ae0eb675db97a57a63f941b29754d8e32040ecc9
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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/beta/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)