From b8bfb62e85a24add60fbeb26e46edc4dd348ed44 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 4 Apr 2013 01:19:55 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178730 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ExecutionEngine/JIT/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'unittests') diff --git a/unittests/ExecutionEngine/JIT/CMakeLists.txt b/unittests/ExecutionEngine/JIT/CMakeLists.txt index ac45d2e..ef37026 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) -- cgit v1.1