diff --git a/unittests/ExecutionEngine/JIT/CMakeLists.txt b/unittests/ExecutionEngine/JIT/CMakeLists.txt index ac45d2e24b9..ef37026dfc9 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)