[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
This commit is contained in:
Stefan Granitz 2019-08-08 13:39:25 +00:00
parent d4695e1d75
commit c822ab8f9a

View File

@ -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 "")