diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-04 01:19:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-04 01:19:55 +0000 |
commit | b8bfb62e85a24add60fbeb26e46edc4dd348ed44 (patch) | |
tree | 755aa525fe54810fa58e6707c1900010159fc798 | |
parent | 436633e2a281ff620f2f4d9a06b33d3a99924717 (diff) | |
download | external_llvm-b8bfb62e85a24add60fbeb26e46edc4dd348ed44.zip external_llvm-b8bfb62e85a24add60fbeb26e46edc4dd348ed44.tar.gz external_llvm-b8bfb62e85a24add60fbeb26e46edc4dd348ed44.tar.bz2 |
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
-rw-r--r-- | unittests/ExecutionEngine/JIT/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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) |