mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
b8bfb62e85
Looks like cmake on windows is not expanding ENABLE_EXPORTS to -Wl,--export-all-symbols on mingw or cygwin, so add this back. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178730 91177308-0d34-0410-b5e6-96231b3b80d8
59 lines
1.2 KiB
CMake
59 lines
1.2 KiB
CMake
set(LLVM_LINK_COMPONENTS
|
|
asmparser
|
|
bitreader
|
|
bitwriter
|
|
jit
|
|
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}
|
|
DebugInfo
|
|
IntelJITEvents
|
|
Object
|
|
)
|
|
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()
|
|
|
|
add_llvm_unittest(JITTests
|
|
${JITTestsSources}
|
|
)
|
|
|
|
if(MINGW OR CYGWIN)
|
|
set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
|
|
endif()
|
|
set_target_properties(JITTests PROPERTIES ENABLE_EXPORTS 1)
|