1 set(LLVM_LINK_COMPONENTS
13 # HACK: Declare a couple of source files as optionally compiled to satisfy the
14 # missing-file-checker in LLVM's weird CMake build.
15 set(LLVM_OPTIONAL_SOURCES
16 IntelJITEventListenerTest.cpp
17 OProfileJITEventListenerTest.cpp
20 if( LLVM_USE_INTEL_JITEVENTS )
21 set(ProfileTestSources
22 IntelJITEventListenerTest.cpp
24 set(LLVM_LINK_COMPONENTS
25 ${LLVM_LINK_COMPONENTS}
30 endif( LLVM_USE_INTEL_JITEVENTS )
32 if( LLVM_USE_OPROFILE )
33 set(ProfileTestSources
35 OProfileJITEventListenerTest.cpp
37 set(LLVM_LINK_COMPONENTS
38 ${LLVM_LINK_COMPONENTS}
41 endif( LLVM_USE_OPROFILE )
44 JITEventListenerTest.cpp
45 JITMemoryManagerTest.cpp
52 list(APPEND JITTestsSources JITTests.def)
55 # The JIT tests need to dlopen things.
56 set(LLVM_NO_DEAD_STRIP 1)
58 add_llvm_unittest(JITTests
63 set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
65 set_target_properties(JITTests PROPERTIES ENABLE_EXPORTS 1)