diff options
| author | Isaac Woods <isaacwoods.home@gmail.com> | 2020-05-04 16:27:46 +0100 |
|---|---|---|
| committer | Isaac Woods <isaacwoods.home@gmail.com> | 2020-05-04 16:27:46 +0100 |
| commit | 6e77729ed5af41f87ffe8c8b7bd949b8b1d44f83 (patch) | |
| tree | b9bfe92f298f7f0ca823a3e9b1614587565f6432 /src/librustc_codegen_llvm | |
| parent | d6823ba1666fa5f65e5fdd17cfc78ff227c092f2 (diff) | |
Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/back/write.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs index 6d175fda45f..394e2f332cb 100644 --- a/src/librustc_codegen_llvm/back/write.rs +++ b/src/librustc_codegen_llvm/back/write.rs @@ -853,7 +853,9 @@ 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") { + } else if cgcx.opts.target_triple.triple().contains("windows") + || cgcx.opts.target_triple.triple().contains("uefi") + { let asm = " .section .llvmbc,\"n\" .section .llvmcmd,\"n\" |
