[llvm] r178730 - Explicitly add -Wl, --export-all-symbols on mingw/cygwin.
Rafael Espindola
rafael.espindola at gmail.com
Wed Apr 3 18:19:55 PDT 2013
Author: rafael
Date: Wed Apr 3 20:19:55 2013
New Revision: 178730
URL: http://llvm.org/viewvc/llvm-project?rev=178730&view=rev
Log:
Explicitly add -Wl,--export-all-symbols on mingw/cygwin.
Looks like cmake on windows is not expanding ENABLE_EXPORTS to
-Wl,--export-all-symbols on mingw or cygwin, so add this back.
Modified:
llvm/trunk/unittests/ExecutionEngine/JIT/CMakeLists.txt
Modified: llvm/trunk/unittests/ExecutionEngine/JIT/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/CMakeLists.txt?rev=178730&r1=178729&r2=178730&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/CMakeLists.txt (original)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/CMakeLists.txt Wed Apr 3 20:19:55 2013
@@ -52,4 +52,7 @@ 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)
More information about the llvm-commits
mailing list