about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-12-22 09:15:29 +0000
committerbors <bors@rust-lang.org>2015-12-22 09:15:29 +0000
commit42c3ef8f9fd4b0dd1f881c49323bad456163f202 (patch)
tree7cccae3a631cf5706b45a3b9c6b13fdd3c6b7a08 /src/libstd/sys/unix/stack_overflow.rs
parent5178449f1c40b8b3a69f71e4db4e745c87b2ba67 (diff)
parentcd74364e5ddd3e81fa27ea149194966a3a172d9b (diff)
downloadrust-42c3ef8f9fd4b0dd1f881c49323bad456163f202.tar.gz
rust-42c3ef8f9fd4b0dd1f881c49323bad456163f202.zip
Auto merge of #30417 - alexcrichton:better-detect-elf-tls, r=alexcrichton
Currently a compiler can be built with the `--disable-elf-tls` option for compatibility with OSX 10.6 which doesn't have ELF TLS. This is unfortunate, however, as a whole new compiler must be generated which can take some time. These commits add a new (feature gated) `cfg(target_thread_local)` annotation set by the compiler which indicates whether `#[thread_local]` is available for use. The compiler now interprets `MACOSX_DEPLOYMENT_TARGET` (a standard environment variable) to set this flag on OSX. With this we may want to start compiling our OSX nightlies with `MACOSX_DEPLOYMENT_TARGET` set to 10.6 which would allow the compiler out-of-the-box to generate 10.6-compatible binaries.

For now the compiler still by default targets OSX 10.7 by allowing ELF TLS by default (e.g. if `MACOSX_DEPLOYMENT_TARGET` isn't set).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions