[Lldb-commits] [lldb] r369220 - [CMake] Update CMAKE_OSX_DEPLOYMENT_TARGET to 10.12.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Sun Aug 18 14:54:26 PDT 2019
Author: jdevlieghere
Date: Sun Aug 18 14:54:26 2019
New Revision: 369220
URL: http://llvm.org/viewvc/llvm-project?rev=369220&view=rev
Log:
[CMake] Update CMAKE_OSX_DEPLOYMENT_TARGET to 10.12.
After LLVM moved to C++14, the RWMutex implementation was removed in
favor of std::shared_timed_mutex, which is only available on macOS
10.12 and later. As a workaround for older deployment targets, I added
the original RWMutexImpl again, guarded by the deployment target.
When doing a standalone build of LLDB using the Xcode generator, the
CMake cache specifies a minimum deployment target. However, LLVM and
Clang might have been built with a different minimum deployment target.
This is exactly what happened for the Xcode build. LLVM was built with a
minimum deployment target newer than 10.12, using
std::shared_timed_mutex. LLDB on the other hand was built with a minimum
deployment target of 10.11, using the old RWMutexImpl, resulting in
undefined symbols at link-time.
This patch changes the minimum deployment target for the Xcode build to
10.12 to work around this problem. A better solution would involve
synchronizing the minimum deployment or even not setting one at all.
Modified:
lldb/trunk/cmake/caches/Apple-lldb-Xcode.cmake
Modified: lldb/trunk/cmake/caches/Apple-lldb-Xcode.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/caches/Apple-lldb-Xcode.cmake?rev=369220&r1=369219&r2=369220&view=diff
==============================================================================
--- lldb/trunk/cmake/caches/Apple-lldb-Xcode.cmake (original)
+++ lldb/trunk/cmake/caches/Apple-lldb-Xcode.cmake Sun Aug 18 14:54:26 2019
@@ -1,7 +1,7 @@
include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake)
set(CMAKE_GENERATOR Xcode CACHE STRING "")
-set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "")
+set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "")
set(CMAKE_XCODE_GENERATE_SCHEME ON CACHE BOOL "")
set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "")
More information about the lldb-commits
mailing list