Skip to content

Commit

Permalink
Correctly handle UEFI targets as Windows-like when emitting sections …
Browse files Browse the repository at this point in the history
…for LLVM bitcode
  • Loading branch information
IsaacWoods committed May 4, 2020
1 parent d6823ba commit 6e77729
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_codegen_llvm/back/write.rs
Expand Up @@ -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\"
Expand Down

0 comments on commit 6e77729

Please sign in to comment.