diff options
| author | David Wood <david.wood@huawei.com> | 2023-11-08 14:15:26 +0800 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2023-11-08 14:15:26 +0800 |
| commit | 76aa83e3e13bf23168389699ca69c59d7a79a336 (patch) | |
| tree | 54205a5e9157d87c1e4c0a034053519c8a522295 /compiler/rustc_target/src/spec/base/linux_ohos.rs | |
| parent | 0d5ec963bb9f3e481bca1d0149d26f1688784341 (diff) | |
| download | rust-76aa83e3e13bf23168389699ca69c59d7a79a336.tar.gz rust-76aa83e3e13bf23168389699ca69c59d7a79a336.zip | |
target: move base specs to spec/base
Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'compiler/rustc_target/src/spec/base/linux_ohos.rs')
| -rw-r--r-- | compiler/rustc_target/src/spec/base/linux_ohos.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/base/linux_ohos.rs b/compiler/rustc_target/src/spec/base/linux_ohos.rs new file mode 100644 index 00000000000..273e6a98dd4 --- /dev/null +++ b/compiler/rustc_target/src/spec/base/linux_ohos.rs @@ -0,0 +1,12 @@ +use crate::spec::{base, TargetOptions}; + +pub fn opts() -> TargetOptions { + let mut base = base::linux::opts(); + + base.env = "ohos".into(); + base.crt_static_default = false; + base.force_emulated_tls = true; + base.has_thread_local = false; + + base +} |
