rust/src/librustc_back
bors 42c3ef8f9f 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).
2015-12-22 09:15:29 +00:00
..
target rustc: Add feature-gated cfg(target_thread_local) 2015-12-21 22:05:37 -08:00
abi.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
lib.rs Register new snapshots 2015-12-21 09:26:21 -08:00
rpath.rs Pass --enable-new-dtags to GNU ld 2015-12-15 21:20:44 -05:00
sha2.rs std: Stabilize APIs for the 1.6 release 2015-12-05 15:09:44 -08:00
slice.rs std: Stabilize library APIs for 1.5 2015-10-25 09:36:32 -07:00
svh.rs Implement type ascription. 2015-12-16 17:12:35 +03:00
tempdir.rs Reduce code bloat from conversion traits in function parameters 2015-09-09 22:37:59 +03:00