| 1 |
set(LLVM_LINK_COMPONENTS |
| 2 |
Analysis |
| 3 |
Core |
| 4 |
ExecutionEngine |
| 5 |
MC |
| 6 |
MCJIT |
| 7 |
Passes |
| 8 |
RuntimeDyld |
| 9 |
ScalarOpts |
| 10 |
Support |
| 11 |
Target |
| 12 |
TargetParser |
| 13 |
nativecodegen |
| 14 |
) |
| 15 |
|
| 16 |
set(MCJITTestsSources |
| 17 |
MCJITTest.cpp |
| 18 |
MCJITCAPITest.cpp |
| 19 |
MCJITMemoryManagerTest.cpp |
| 20 |
MCJITMultipleModuleTest.cpp |
| 21 |
MCJITObjectCacheTest.cpp |
| 22 |
) |
| 23 |
|
| 24 |
if(MSVC) |
| 25 |
list(APPEND MCJITTestsSources MCJITTests.def) |
| 26 |
endif() |
| 27 |
|
| 28 |
add_llvm_unittest(MCJITTests |
| 29 |
${MCJITTestsSources} |
| 30 |
) |
| 31 |
|
| 32 |
if(MINGW OR CYGWIN) |
| 33 |
set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols) |
| 34 |
endif() |
| 35 |
|
| 36 |
set_property(TARGET MCJITTests PROPERTY FOLDER "Tests/UnitTests/ExecutionTests") |