rustc_target: Mark UEFI targets as is_like_windows/is_like_msvc

Document what `is_like_windows` and `is_like_msvc` mean in more detail.
This commit is contained in:
Vadim Petrochenkov 2020-11-12 00:54:23 +03:00
parent 7f5a42b073
commit 04d41e1f40
5 changed files with 21 additions and 15 deletions

View file

@ -925,9 +925,7 @@ 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")
|| cgcx.opts.target_triple.triple().contains("uefi")
{
} else if cgcx.is_pe_coff {
let asm = "
.section .llvmbc,\"n\"
.section .llvmcmd,\"n\"