[lldb][CMake] Disable modules in Xcode projects
authorStefan Granitz <stefan.graenitz@gmail.com>
Thu, 8 Aug 2019 13:39:25 +0000 (13:39 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Thu, 8 Aug 2019 13:39:25 +0000 (13:39 +0000)
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

index 34bb24e..0a57181 100644 (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 "")