1set(LLVM_LINK_COMPONENTS 2 asmparser 3 bitreader 4 bitwriter 5 mcjit 6 nativecodegen 7 ) 8 9set(MCJITTestsSources 10 MCJITTest.cpp 11 MCJITCAPITest.cpp 12 MCJITMemoryManagerTest.cpp 13 MCJITMultipleModuleTest.cpp 14 MCJITObjectCacheTest.cpp 15 ) 16 17if(MSVC) 18 list(APPEND MCJITTestsSources MCJITTests.def) 19endif() 20 21add_llvm_unittest(MCJITTests 22 ${MCJITTestsSources} 23 ) 24 25if(MINGW OR CYGWIN) 26 set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols) 27endif() 28