Andrew Kaylor | 5e7d792 | 2012-10-04 20:29:44 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS |
| 2 | asmparser |
| 3 | bitreader |
| 4 | bitwriter |
Andrew Kaylor | 5e7d792 | 2012-10-04 20:29:44 +0000 | [diff] [blame] | 5 | jit |
Andrew Kaylor | ab5ba51 | 2012-11-27 19:42:02 +0000 | [diff] [blame^] | 6 | mcjit |
Andrew Kaylor | 5e7d792 | 2012-10-04 20:29:44 +0000 | [diff] [blame] | 7 | nativecodegen |
| 8 | ) |
| 9 | |
| 10 | set(MCJITTestsSources |
| 11 | MCJITTest.cpp |
Andrew Kaylor | ab5ba51 | 2012-11-27 19:42:02 +0000 | [diff] [blame^] | 12 | MCJITMemoryManagerTest.cpp |
Andrew Kaylor | 5e7d792 | 2012-10-04 20:29:44 +0000 | [diff] [blame] | 13 | ) |
| 14 | |
| 15 | if(MSVC) |
| 16 | list(APPEND MCJITTestsSources MCJITTests.def) |
| 17 | endif() |
| 18 | |
| 19 | add_llvm_unittest(MCJITTests |
| 20 | ${MCJITTestsSources} |
| 21 | ) |
| 22 | |
| 23 | if(MINGW OR CYGWIN) |
| 24 | set_property(TARGET MCJITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols) |
| 25 | endif() |