2012-10-04 22:29:44 +02:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
asmparser
|
|
|
|
bitreader
|
|
|
|
bitwriter
|
|
|
|
jit
|
2012-11-27 20:42:02 +01:00
|
|
|
mcjit
|
2012-10-04 22:29:44 +02:00
|
|
|
nativecodegen
|
|
|
|
)
|
|
|
|
|
|
|
|
set(MCJITTestsSources
|
|
|
|
MCJITTest.cpp
|
2013-04-29 19:49:40 +02:00
|
|
|
MCJITCAPITest.cpp
|
2012-11-27 20:42:02 +01:00
|
|
|
MCJITMemoryManagerTest.cpp
|
2013-10-01 03:48:36 +02:00
|
|
|
MCJITMultipleModuleTest.cpp
|
2013-04-25 23:02:36 +02:00
|
|
|
MCJITObjectCacheTest.cpp
|
2012-10-04 22:29:44 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
list(APPEND MCJITTestsSources MCJITTests.def)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_llvm_unittest(MCJITTests
|
|
|
|
${MCJITTestsSources}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(MINGW OR CYGWIN)
|
|
|
|
set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
|
|
|
|
endif()
|