1 set(LLVM_LINK_COMPONENTS
12 # HACK: Declare a couple of source files as optionally compiled to satisfy the
13 # missing-file-checker in LLVM's weird CMake build.
14 set(LLVM_OPTIONAL_SOURCES
15 IntelJITEventListenerTest.cpp
16 OProfileJITEventListenerTest.cpp
19 if( LLVM_USE_INTEL_JITEVENTS )
20 set(ProfileTestSources
21 IntelJITEventListenerTest.cpp
23 set(LLVM_LINK_COMPONENTS
24 ${LLVM_LINK_COMPONENTS}
29 endif( LLVM_USE_INTEL_JITEVENTS )
31 if( LLVM_USE_OPROFILE )
32 set(ProfileTestSources
34 OProfileJITEventListenerTest.cpp
36 set(LLVM_LINK_COMPONENTS
37 ${LLVM_LINK_COMPONENTS}
40 endif( LLVM_USE_OPROFILE )
43 JITEventListenerTest.cpp
44 JITMemoryManagerTest.cpp
51 list(APPEND JITTestsSources JITTests.def)
54 # The JIT tests need to dlopen things.
55 set(LLVM_NO_DEAD_STRIP 1)
57 add_llvm_unittest(JITTests
62 set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
64 set_target_properties(JITTests PROPERTIES ENABLE_EXPORTS 1)