summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittests/ExecutionEngine/JIT/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/ExecutionEngine/JIT/CMakeLists.txt b/unittests/ExecutionEngine/JIT/CMakeLists.txt
index ac45d2e24b..ef37026dfc 100644
--- a/unittests/ExecutionEngine/JIT/CMakeLists.txt
+++ b/unittests/ExecutionEngine/JIT/CMakeLists.txt
@@ -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)