[Lldb-commits] [lldb] e56ba37 - build: make standalone builds work again

Saleem Abdulrasool via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 29 08:26:08 PDT 2019


Author: Saleem Abdulrasool
Date: 2019-10-29T08:24:10-07:00
New Revision: e56ba3743bcc344c51be9d919c32ec8f88ddef44

URL: https://github.com/llvm/llvm-project/commit/e56ba3743bcc344c51be9d919c32ec8f88ddef44
DIFF: https://github.com/llvm/llvm-project/commit/e56ba3743bcc344c51be9d919c32ec8f88ddef44.diff

LOG: build: make standalone builds work again

Apple's greendragon bot uses a standalone build of lldb which would
fail to build after a recent change to LLVM as it relied on LLVM setting
global flags for its build.  Attempt to repair the standalone build for
greendragon bot.

Added: 
    

Modified: 
    lldb/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
index a5e505c67a13..511c75d76588 100644
--- a/lldb/CMakeLists.txt
+++ b/lldb/CMakeLists.txt
@@ -16,6 +16,10 @@ set(CMAKE_MODULE_PATH
 if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
   project(lldb)
   include(LLDBStandalone)
+
+  set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
+  set(CMAKE_CXX_STANDARD_REQUIRED YES)
+  set(CMAKE_CXX_EXTENSIONS NO)
 endif()
 
 include(LLDBConfig)


        


More information about the lldb-commits mailing list