diff options
author | Alex Langford <apl@fb.com> | 2018-09-12 18:10:22 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2018-09-12 18:10:22 +0000 |
commit | f59cefe41f8ea8cadaab7a16607756e803f07703 (patch) | |
tree | c30289caf71551b516ab345221ee36e8663b5a3f /lldb/source | |
parent | 2ed2acf569c464d01ad933bde151d113664eedb8 (diff) |
Add compatibility version to liblldb in framework builds
Summary:
Building LLDB with xcodebuild sets the compatibility version of liblldb
in LLDB.framework. Building the framework with cmake does not set the
compatibility version, and so it defaults to 0.0.0. This is a discrepency in the
difference between the xcode build and the cmake build.
I tested this change by building without this patch. From the build tree I ran
`otool -L Library/Frameworks/LLDB.framework/Versions/A/LLDB` and got this:
```
@rpath/LLDB.framework/Versions/A/LLDB (compatibility version 0.0.0, current version 8.0.0)
```
Did the same with this patch and the output contained this:
```
@rpath/LLDB.framework/Versions/A/LLDB (compatibility version 1.0.0, current version 8.0.0)
```
Reviewers: clayborg, labath
Subscribers: mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D51959
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/API/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index fefab4bf84f..3c5f4ddb43f 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -146,6 +146,7 @@ endif() if (LLDB_BUILD_FRAMEWORK) set_target_properties(liblldb PROPERTIES + SOVERSION "1.0.0" OUTPUT_NAME LLDB FRAMEWORK On FRAMEWORK_VERSION ${LLDB_FRAMEWORK_VERSION} |