diff options
| author | bors <bors@rust-lang.org> | 2020-11-14 09:11:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-14 09:11:25 +0000 |
| commit | 66c1309446236985da64b56994ceca1127ca514e (patch) | |
| tree | 2606c452515adaac43167b8c77dfab4ae5407b70 /compiler/rustc_codegen_llvm/src | |
| parent | 1a25580c6c6640a47067743d5c36888fac822a12 (diff) | |
| parent | 04d41e1f4083307b1434d305899da739b21e5155 (diff) | |
| download | rust-66c1309446236985da64b56994ceca1127ca514e.tar.gz rust-66c1309446236985da64b56994ceca1127ca514e.zip | |
Auto merge of #78959 - petrochenkov:likeuefi, r=nagisa
rustc_target: Mark UEFI targets as `is_like_windows`/`is_like_msvc` And document what `is_like_windows` and `is_like_msvc` actually mean in more detail. Addresses FIXMEs left from https://github.com/rust-lang/rust/pull/71030. r? `@nagisa`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index e6acb6860be..6237a4c0020 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -925,9 +925,7 @@ unsafe fn embed_bitcode( || cgcx.opts.target_triple.triple().starts_with("asmjs") { // nothing to do here - } else if cgcx.opts.target_triple.triple().contains("windows") - || cgcx.opts.target_triple.triple().contains("uefi") - { + } else if cgcx.is_pe_coff { let asm = " .section .llvmbc,\"n\" .section .llvmcmd,\"n\" |
