mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
[lldb] Never compile the debugserver with Clang module flags
Summary: Compiling ObjC++ with Clang modules is usually not working well and compiling the small debugserver with modules is not worth the trouble. Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: mgorny, JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D74891
This commit is contained in:
@@ -13,6 +13,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
include(debugserverConfig)
|
||||
include(AddLLDB)
|
||||
|
||||
# debugserver contains ObjC++ code, so let's disable Clang modules
|
||||
# in this subdirectory to avoid building ObjC++ modules (which often
|
||||
# doesn't properly work).
|
||||
remove_module_flags()
|
||||
|
||||
set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../")
|
||||
include_directories(${LLDB_SOURCE_DIR}/include)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user