summaryrefslogtreecommitdiff
path: root/cmake/modules/HandleLLVMOptions.cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-28 23:31:44 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-28 23:31:44 +0000
commitb6fe25c47661a287224d09165b68ce76084294ca (patch)
treeb8f9b8e17241ebe4ea979afeda7ce16dea31afc3 /cmake/modules/HandleLLVMOptions.cmake
parent621bd8d76a698899959190849a1b21d019f56e52 (diff)
downloadllvm-b6fe25c47661a287224d09165b68ce76084294ca.tar.gz
llvm-b6fe25c47661a287224d09165b68ce76084294ca.tar.bz2
llvm-b6fe25c47661a287224d09165b68ce76084294ca.tar.xz
EXPORTED_SYMBOL_FILE support for cmake
The cmake build didn't support EXPORTED_SYMBOL_FILE. Instead, it had a Windows-only implementation in tools/lto/CMakeLists.txt, a linux-only implementation in tools/gold/CMakeLists.txt, and a darwin-only implementation in tools/clang/tools/libclang/CMakeLists.txt. This attempts to consolidate these one-offs into a single place. Clients can now just set LLVM_EXPORTED_SYMBOL_FILE and things (hopefully) Just Work, like in the make build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/HandleLLVMOptions.cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index facf2f97fd..38dacb7b88 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -41,6 +41,7 @@ else()
endif()
if(WIN32)
+ set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
if(CYGWIN)
set(LLVM_ON_WIN32 0)
set(LLVM_ON_UNIX 1)
@@ -57,8 +58,10 @@ else(WIN32)
set(LLVM_ON_WIN32 0)
set(LLVM_ON_UNIX 1)
if(APPLE)
+ set(LLVM_HAVE_LINK_VERSION_SCRIPT 0)
set(LTDL_SHLIB_EXT ".dylib")
else(APPLE)
+ set(LLVM_HAVE_LINK_VERSION_SCRIPT 1)
set(LTDL_SHLIB_EXT ".so")
endif(APPLE)
set(EXEEXT "")