Skip to content

Commit c822ab8

Browse files
[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
1 parent d4695e1 commit c822ab8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/cmake/caches/Apple-lldb-Xcode.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set(CMAKE_XCODE_GENERATE_SCHEME ON CACHE BOOL "")
66

77
set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "")
88

9+
# Apparently, module-enabled builds clash with Xcode's analysis.
10+
set(LLVM_ENABLE_MODULES OFF CACHE BOOL "" FORCE)
11+
912
# Print a warning with instructions, if we
1013
# build with Xcode and didn't use this cache.
1114
set(LLDB_EXPLICIT_XCODE_CACHE_USED ON CACHE INTERNAL "")

0 commit comments

Comments
 (0)