This adds support for FatLTO to COFF targets in clang and lld. The changes are adapted from610fc5cbccand14e3bec8fcbut much smaller because it just needed the COFF-specific parts wired in, and I tried my best to adapt the pre-existing ELF tests for the COFF version. My main goal is to be able to use this for shipping pre-built https://github.com/XboxDev/nxdk container images someday, which uses the `i386-pc-win32` target.
6 lines
208 B
LLVM
6 lines
208 B
LLVM
; RUN: not opt --mtriple powerpc64-unknown-aix < %s -passes=embed-bitcode -S 2>&1 | FileCheck %s
|
|
|
|
@a = global i32 1
|
|
|
|
; CHECK: LLVM ERROR: EmbedBitcode pass currently only supports COFF and ELF object formats
|