We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 337c11e commit 810a564Copy full SHA for 810a564
src/bootstrap/src/core/builder/cargo.rs
@@ -1004,7 +1004,12 @@ impl Builder<'_> {
1004
// efficient initial-exec TLS model. This doesn't work with `dlopen`,
1005
// so we can't use it by default in general, but we can use it for tools
1006
// and our own internal libraries.
1007
- if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") {
+ //
1008
+ // Cygwin only supports emutls.
1009
+ if !mode.must_support_dlopen()
1010
+ && !target.triple.starts_with("powerpc-")
1011
+ && !target.triple.contains("cygwin")
1012
+ {
1013
cargo.env("RUSTC_TLS_MODEL_INITIAL_EXEC", "1");
1014
}
1015
0 commit comments