Correctly handle UEFI targets as Windows-like when emitting sections for LLVM bitcode
This commit is contained in:
parent
d6823ba166
commit
6e77729ed5
1 changed files with 3 additions and 1 deletions
|
@ -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\"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue