2012-10-04 20:29:44 +00:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2013-12-10 11:13:32 +00:00
|
|
|
Analysis
|
|
|
|
Core
|
|
|
|
ExecutionEngine
|
2014-02-20 23:57:31 +00:00
|
|
|
IPO
|
2014-07-14 05:01:53 +00:00
|
|
|
MC
|
2013-12-10 11:13:32 +00:00
|
|
|
MCJIT
|
|
|
|
ScalarOpts
|
|
|
|
Support
|
|
|
|
Target
|
2012-10-04 20:29:44 +00:00
|
|
|
nativecodegen
|
|
|
|
)
|
|
|
|
|
|
|
|
set(MCJITTestsSources
|
|
|
|
MCJITTest.cpp
|
2013-04-29 17:49:40 +00:00
|
|
|
MCJITCAPITest.cpp
|
2012-11-27 19:42:02 +00:00
|
|
|
MCJITMemoryManagerTest.cpp
|
2013-10-01 01:48:36 +00:00
|
|
|
MCJITMultipleModuleTest.cpp
|
2013-04-25 21:02:36 +00:00
|
|
|
MCJITObjectCacheTest.cpp
|
2012-10-04 20:29:44 +00: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()
|