[llvm-commits] [llvm] r119783 - in /llvm/trunk/unittests: CMakeLists.txt ExecutionEngine/JIT/JITTests.def
NAKAMURA Takumi
geek4civic at gmail.com
Thu Nov 18 19:19:42 PST 2010
Author: chapuni
Date: Thu Nov 18 21:19:42 2010
New Revision: 119783
URL: http://llvm.org/viewvc/llvm-project?rev=119783&view=rev
Log:
unittests/CMakeLists.txt: [PR8225] Tweak linking JITTests on MSVC to add JITTests.def.
CMake can pass *.def to link.exe.
Added:
llvm/trunk/unittests/ExecutionEngine/JIT/JITTests.def
Modified:
llvm/trunk/unittests/CMakeLists.txt
Modified: llvm/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/CMakeLists.txt?rev=119783&r1=119782&r2=119783&view=diff
==============================================================================
--- llvm/trunk/unittests/CMakeLists.txt (original)
+++ llvm/trunk/unittests/CMakeLists.txt Thu Nov 18 21:19:42 2010
@@ -63,13 +63,19 @@
ExecutionEngine/ExecutionEngineTest.cpp
)
-add_llvm_unittest(JIT
+set(JITTestsSources
ExecutionEngine/JIT/JITEventListenerTest.cpp
ExecutionEngine/JIT/JITMemoryManagerTest.cpp
ExecutionEngine/JIT/JITTest.cpp
ExecutionEngine/JIT/MultiJITTest.cpp
)
+if(MSVC)
+ list(APPEND JITTestsSources ExecutionEngine/JIT/JITTests.def)
+endif()
+
+add_llvm_unittest(JIT ${JITTestsSources})
+
add_llvm_unittest(Transforms
Transforms/Utils/Cloning.cpp
)
Added: llvm/trunk/unittests/ExecutionEngine/JIT/JITTests.def
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/JITTests.def?rev=119783&view=auto
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/JITTests.def (added)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/JITTests.def Thu Nov 18 21:19:42 2010
@@ -0,0 +1,4 @@
+EXPORTS
+getPointerToNamedFunction
+JITTest_AvailableExternallyFunction
+JITTest_AvailableExternallyGlobal
More information about the llvm-commits
mailing list