From c822ab8f9accc63e5a4fa01273f257653360dacc Mon Sep 17 00:00:00 2001 From: Stefan Granitz Date: Thu, 8 Aug 2019 13:39:25 +0000 Subject: [PATCH] [lldb][CMake] Disable modules in Xcode projects Summary: Apparently, module-enabled builds clash with Xcode's analysis. Reviewers: aprantl, jingham, davide, teemperor Reviewed By: davide Subscribers: mgorny, lldb-commits, #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D65874 llvm-svn: 368294 --- lldb/cmake/caches/Apple-lldb-Xcode.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/cmake/caches/Apple-lldb-Xcode.cmake b/lldb/cmake/caches/Apple-lldb-Xcode.cmake index 34bb24e..0a57181 100644 --- a/lldb/cmake/caches/Apple-lldb-Xcode.cmake +++ b/lldb/cmake/caches/Apple-lldb-Xcode.cmake @@ -6,6 +6,9 @@ set(CMAKE_XCODE_GENERATE_SCHEME ON CACHE BOOL "") set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "") +# Apparently, module-enabled builds clash with Xcode's analysis. +set(LLVM_ENABLE_MODULES OFF CACHE BOOL "" FORCE) + # Print a warning with instructions, if we # build with Xcode and didn't use this cache. set(LLDB_EXPLICIT_XCODE_CACHE_USED ON CACHE INTERNAL "") -- 2.7.4