Skip to content

Commit 6523b9a

Browse files
committed
Add tls_model for cygwin target
1 parent 5f025f3 commit 6523b9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_target/src/spec/base/cygwin.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use std::borrow::Cow;
22

33
use crate::spec::{
4-
BinaryFormat, Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOptions, cvs,
4+
BinaryFormat, Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOptions, TlsModel,
5+
cvs,
56
};
67

78
pub(crate) fn opts() -> TargetOptions {
@@ -44,6 +45,8 @@ pub(crate) fn opts() -> TargetOptions {
4445
eh_frame_header: false,
4546
debuginfo_kind: DebuginfoKind::Dwarf,
4647
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
48+
tls_model: TlsModel::Emulated,
49+
has_thread_local: false,
4750
..Default::default()
4851
}
4952
}

0 commit comments

Comments
 (0)