about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorIsaac Woods <isaacwoods.home@gmail.com>2020-05-04 16:27:46 +0100
committerIsaac Woods <isaacwoods.home@gmail.com>2020-05-04 16:27:46 +0100
commit6e77729ed5af41f87ffe8c8b7bd949b8b1d44f83 (patch)
treeb9bfe92f298f7f0ca823a3e9b1614587565f6432 /src/librustc_codegen_llvm
parentd6823ba1666fa5f65e5fdd17cfc78ff227c092f2 (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.rs4
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\"