Skip to content

Commit 6e77729

Browse files
committed
Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode
1 parent d6823ba commit 6e77729

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_codegen_llvm/back/write.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,9 @@ unsafe fn embed_bitcode(
853853
|| cgcx.opts.target_triple.triple().starts_with("asmjs")
854854
{
855855
// nothing to do here
856-
} else if cgcx.opts.target_triple.triple().contains("windows") {
856+
} else if cgcx.opts.target_triple.triple().contains("windows")
857+
|| cgcx.opts.target_triple.triple().contains("uefi")
858+
{
857859
let asm = "
858860
.section .llvmbc,\"n\"
859861
.section .llvmcmd,\"n\"

0 commit comments

Comments
 (0)