diff options
author | Louis Dionne <ldionne@apple.com> | 2019-10-07 19:22:04 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-10-07 19:22:04 +0000 |
commit | d8437551e708ba08a5fa8b3b098c2fe877f9a907 (patch) | |
tree | 4b733a214d56748149cee313fd1bc6dcd550871b | |
parent | 9de3fb54bd218fc8eaf4fadb00e372e11079e787 (diff) |
[libc++abi] Introduce a LIBCXXABI_LIBRARY_VERSION option
That option controls the 'VERSION' attribute of the libc++abi shared
library, which in turn controls the name of the actual dylib being
produced.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@373949 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ca1690..fafb777 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,11 @@ set(LIBCXXABI_TARGET_TRIPLE "" CACHE STRING "Target triple for cross compiling." set(LIBCXXABI_GCC_TOOLCHAIN "" CACHE PATH "GCC toolchain for cross compiling.") set(LIBCXXABI_SYSROOT "" CACHE PATH "Sysroot for cross compiling.") set(LIBCXXABI_LIBCXX_LIBRARY_PATH "" CACHE PATH "The path to libc++ library.") +set(LIBCXXABI_LIBRARY_VERSION "1.0" CACHE STRING +"Version of libc++abi. This will be reflected in the name of the shared \ +library produced. For example, -DLIBCXXABI_LIBRARY_VERSION=x.y will \ +result in the library being named libc++abi.x.y.dylib, along with the \ +usual symlinks pointing to that.") # Default to building a shared library so that the default options still test # the libc++abi that is being built. There are two problems with testing a diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0bb164d..b38973b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -176,7 +176,7 @@ if (LIBCXXABI_ENABLE_SHARED) SOVERSION "1" VERSION - "1.0" + "${LIBCXXABI_LIBRARY_VERSION}" DEFINE_SYMBOL "") |