summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-shlib
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-10-14 07:50:21 +0000
committerChris Bieneman <beanz@apple.com>2015-10-14 07:50:21 +0000
commitcfa310946fdfc83af7968d768da77d6416934822 (patch)
treea666cd976725882b2c5b00badfa85f6117964e9e /llvm/tools/llvm-shlib
parent68ddd150f8636b105ec8638edd049d55b7673cbd (diff)
downloadbcm5719-llvm-cfa310946fdfc83af7968d768da77d6416934822.tar.gz
bcm5719-llvm-cfa310946fdfc83af7968d768da77d6416934822.zip
[CMake] Add LLVM_VERSION_PATCH to the -current_version flag for libLTO and libLLVM.
This is to match autoconf where LLVM_SUBMIT_SUBVERSION is usually set to ${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}. llvm-svn: 250277
Diffstat (limited to 'llvm/tools/llvm-shlib')
-rw-r--r--llvm/tools/llvm-shlib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
index b679dc7fc3b..9fddc41965a 100644
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
@@ -91,6 +91,6 @@ endif()
if (APPLE)
set_property(TARGET LLVM APPEND_STRING PROPERTY
LINK_FLAGS
- " -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
+ " -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")
endif()
OpenPOWER on IntegriCloud