| 1 |
set(LLVM_LINK_COMPONENTS |
| 2 |
BinaryFormat |
| 3 |
Object |
| 4 |
ObjectYAML |
| 5 |
TargetParser |
| 6 |
) |
| 7 |
|
| 8 |
add_llvm_unittest(ObjectTests |
| 9 |
ArchiveTest.cpp |
| 10 |
COFFObjectFileTest.cpp |
| 11 |
DXContainerTest.cpp |
| 12 |
ELFObjectFileTest.cpp |
| 13 |
ELFTypesTest.cpp |
| 14 |
ELFTest.cpp |
| 15 |
GOFFObjectFileTest.cpp |
| 16 |
MinidumpTest.cpp |
| 17 |
ObjectFileTest.cpp |
| 18 |
OffloadingTest.cpp |
| 19 |
OffloadingBundleTest.cpp |
| 20 |
SymbolSizeTest.cpp |
| 21 |
SymbolicFileTest.cpp |
| 22 |
XCOFFObjectFileTest.cpp |
| 23 |
) |
| 24 |
|
| 25 |
target_link_libraries(ObjectTests PRIVATE LLVMTestingSupport) |
| 26 |
|
| 27 |
if (MSVC) |
| 28 |
# Disable warning C4309: '=': truncation of constant value |
| 29 |
set_source_files_properties(GOFFObjectFileTest.cpp PROPERTIES COMPILE_FLAGS -wd4309) |
| 30 |
endif() |