diff options
| author | Berrysoft <Strawberry_Str@hotmail.com> | 2025-05-29 13:55:50 +0800 |
|---|---|---|
| committer | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-05-30 00:23:18 +0800 |
| commit | 9281958c6ac7dd55f4fe143f7268694eeade5abd (patch) | |
| tree | df10ec631973310ae72a378cc6b93738c8c9024e | |
| parent | 5f025f363df11c65bd31ade9fe6f48fd4f4239af (diff) | |
| download | rust-9281958c6ac7dd55f4fe143f7268694eeade5abd.tar.gz rust-9281958c6ac7dd55f4fe143f7268694eeade5abd.zip | |
Add tls_model for cygwin and enable has_thread_local
| -rw-r--r-- | compiler/rustc_target/src/spec/base/cygwin.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/base/cygwin.rs b/compiler/rustc_target/src/spec/base/cygwin.rs index 819d1d68a71..d6ae0a905bf 100644 --- a/compiler/rustc_target/src/spec/base/cygwin.rs +++ b/compiler/rustc_target/src/spec/base/cygwin.rs @@ -1,7 +1,8 @@ use std::borrow::Cow; use crate::spec::{ - BinaryFormat, Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOptions, cvs, + BinaryFormat, Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOptions, TlsModel, + cvs, }; pub(crate) fn opts() -> TargetOptions { @@ -44,6 +45,8 @@ pub(crate) fn opts() -> TargetOptions { eh_frame_header: false, debuginfo_kind: DebuginfoKind::Dwarf, supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]), + tls_model: TlsModel::Emulated, + has_thread_local: true, ..Default::default() } } |
