Re-enabling MCJIT object caching with memory leak fixed
[oota-llvm.git] / unittests / ExecutionEngine / MCJIT / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   bitreader
4   bitwriter
5   jit
6   mcjit
7   nativecodegen
8   )
9
10 set(MCJITTestsSources
11   MCJITTest.cpp
12   MCJITMemoryManagerTest.cpp
13   MCJITObjectCacheTest.cpp
14   )
15
16 if(MSVC)
17   list(APPEND MCJITTestsSources MCJITTests.def)
18 endif()
19
20 add_llvm_unittest(MCJITTests
21   ${MCJITTestsSources}
22   )
23
24 if(MINGW OR CYGWIN)
25   set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
26 endif()