unittests/JITTests: Don't use --export-dynamic but --export-all-symbols on cygming.
[oota-llvm.git] / unittests / CMakeLists.txt
index 41e20cfc902df7bfedbe785d9c7cde2ba8199a17..7953fac3bfae273b654d2c276405fc04cc00e518 100644 (file)
@@ -82,6 +82,10 @@ endif()
 
 add_llvm_unittest(JIT ${JITTestsSources})
 
+if(MINGW)
+  set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
+endif()
+
 add_llvm_unittest(Transforms
   Transforms/Utils/Cloning.cpp
   )