[PATCH] D61956: [CMake] Add first CMake cache files

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 12:17:58 PDT 2019


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL361069: [CMake] Add first CMake cache files (authored by stefan.graenitz, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D61956?vs=200007&id=200078#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61956/new/

https://reviews.llvm.org/D61956

Files:
  lldb/trunk/cmake/caches/Apple-lldb-base.cmake
  lldb/trunk/cmake/caches/Apple-lldb-macOS.cmake


Index: lldb/trunk/cmake/caches/Apple-lldb-macOS.cmake
===================================================================
--- lldb/trunk/cmake/caches/Apple-lldb-macOS.cmake
+++ lldb/trunk/cmake/caches/Apple-lldb-macOS.cmake
@@ -0,0 +1,22 @@
+include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake)
+
+set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "")
+set(LLDB_NO_INSTALL_DEFAULT_RPATH ON CACHE BOOL "")
+
+# Set the install prefix to the default install location on the enduser machine.
+# If the location is not writeable on the build machine, specify another prefix
+# in the DESTDIR environment variable, e.g.: DESTDIR=/tmp ninja install
+set(CMAKE_INSTALL_PREFIX /Applications/Xcode.app/Contents/Developer/usr CACHE STRING "")
+
+# Choose the install location for LLDB.framework so that it matches the
+# INSTALL_RPATH of the lldb driver. It's either absolute or relative to
+# CMAKE_INSTALL_PREFIX. In any case, DESTDIR will be an extra prefix.
+set(LLDB_FRAMEWORK_INSTALL_DIR /Applications/Xcode.app/Contents/SharedFrameworks CACHE STRING "")
+
+# Release builds may change these:
+set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "")
+set(LLDB_USE_SYSTEM_DEBUGSERVER ON CACHE BOOL "")
+set(LLVM_EXTERNALIZE_DEBUGINFO OFF CACHE BOOL "")
+
+set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
+set(LLVM_ENABLE_MODULES ON CACHE BOOL "")
Index: lldb/trunk/cmake/caches/Apple-lldb-base.cmake
===================================================================
--- lldb/trunk/cmake/caches/Apple-lldb-base.cmake
+++ lldb/trunk/cmake/caches/Apple-lldb-base.cmake
@@ -0,0 +1,8 @@
+set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "")
+set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "")
+
+# Release builds set these explicitly:
+#set(LLDB_VERSION_MAJOR 9999 CACHE STRING "")
+#set(LLDB_VERSION_MINOR 9 CACHE STRING "")
+#set(LLDB_VERSION_PATCH 9 CACHE STRING "")
+#set(LLDB_VERSION_SUFFIX git CACHE STRING "")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61956.200078.patch
Type: text/x-patch
Size: 1911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190517/d73b4cb3/attachment.bin>


More information about the llvm-commits mailing list