2012-06-21 09:51:26 +00:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2012-06-21 10:02:40 +00:00
|
|
|
asmparser
|
|
|
|
bitreader
|
|
|
|
bitwriter
|
|
|
|
jit
|
2012-06-21 09:51:26 +00:00
|
|
|
nativecodegen
|
|
|
|
)
|
|
|
|
|
|
|
|
# HACK: Declare a couple of source files as optionally compiled to satisfy the
|
|
|
|
# missing-file-checker in LLVM's weird CMake build.
|
|
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
|
|
IntelJITEventListenerTest.cpp
|
|
|
|
OProfileJITEventListenerTest.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
if( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
set(ProfileTestSources
|
|
|
|
IntelJITEventListenerTest.cpp
|
|
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_LINK_COMPONENTS}
|
2013-01-28 19:52:37 +00:00
|
|
|
DebugInfo
|
2012-06-21 09:51:26 +00:00
|
|
|
IntelJITEvents
|
2013-01-28 19:52:37 +00:00
|
|
|
Object
|
2012-06-21 09:51:26 +00:00
|
|
|
)
|
|
|
|
endif( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
|
|
|
|
if( LLVM_USE_OPROFILE )
|
|
|
|
set(ProfileTestSources
|
|
|
|
${ProfileTestSources}
|
|
|
|
OProfileJITEventListenerTest.cpp
|
|
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_LINK_COMPONENTS}
|
|
|
|
OProfileJIT
|
|
|
|
)
|
|
|
|
endif( LLVM_USE_OPROFILE )
|
|
|
|
|
|
|
|
set(JITTestsSources
|
|
|
|
JITEventListenerTest.cpp
|
|
|
|
JITMemoryManagerTest.cpp
|
|
|
|
JITTest.cpp
|
|
|
|
MultiJITTest.cpp
|
|
|
|
${ProfileTestSources}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
list(APPEND JITTestsSources JITTests.def)
|
|
|
|
endif()
|
|
|
|
|
2012-06-21 12:44:58 +00:00
|
|
|
add_llvm_unittest(JITTests
|
2012-06-21 09:51:26 +00:00
|
|
|
${JITTestsSources}
|
|
|
|
)
|
|
|
|
|
2013-04-04 01:19:55 +00:00
|
|
|
if(MINGW OR CYGWIN)
|
|
|
|
set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
|
|
|
|
endif()
|
2013-04-04 01:01:32 +00:00
|
|
|
set_target_properties(JITTests PROPERTIES ENABLE_EXPORTS 1)
|