]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45666 - Amanieu:tls-model, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 7 Nov 2017 14:24:15 +0000 (14:24 +0000)
committerbors <bors@rust-lang.org>
Tue, 7 Nov 2017 14:24:15 +0000 (14:24 +0000)
commit7ade24f67201531778e7674b4b63ebf1a23c9643
tree0f0035aa423331057bcf87ffbad38a34972a5450
parent3e7f501991df2f7fc87f6c340945112c128735d2
parentfdf7ba2ce9e304a21d50adf41643da28268fd6fc
Auto merge of #45666 - Amanieu:tls-model, r=alexcrichton

Allow overriding the TLS model

This PR adds the ability to override the default "global-dynamic" TLS model with a more specific one through a target json option or a command-line option. This allows for better code generation in certain situations.

This is similar to the `-ftls-model=` option in GCC and Clang.
src/librustc/session/config.rs
src/librustc_trans/back/write.rs