diff options
| author | bors <bors@rust-lang.org> | 2023-03-29 07:16:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-29 07:16:16 +0000 |
| commit | f346fb0bc655acf72e71f1f16065c271447bdbd9 (patch) | |
| tree | 12ee0966b519561621373db1b6d6904e4a41eb90 /compiler/rustc_codegen_llvm/src/back | |
| parent | 40cd0310db7f67867b305c28fb87b5b660e77df1 (diff) | |
| parent | e3968be331aaf7fa48f2365998ed4d076ddc82c8 (diff) | |
| download | rust-f346fb0bc655acf72e71f1f16065c271447bdbd9.tar.gz rust-f346fb0bc655acf72e71f1f16065c271447bdbd9.zip | |
Auto merge of #108792 - Amanieu:ohos, r=petrochenkov
Add OpenHarmony targets - `aarch64-unknown-linux-ohos` - `armv7-unknown-linux-ohos` Compiler team MCP: https://github.com/rust-lang/compiler-team/issues/568
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index a4ae1b01e86..fb563f70ed0 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -214,6 +214,8 @@ pub fn target_machine_factory( let path_mapping = sess.source_map().path_mapping().clone(); + let force_emulated_tls = sess.target.force_emulated_tls; + Arc::new(move |config: TargetMachineFactoryConfig| { let split_dwarf_file = path_mapping.map_prefix(config.split_dwarf_file.unwrap_or_default()).0; @@ -239,6 +241,7 @@ pub fn target_machine_factory( relax_elf_relocations, use_init_array, split_dwarf_file.as_ptr(), + force_emulated_tls, ) }; |
