[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:
Raphael Isemann 2020-03-06 17:24:56 -08:00
parent ce1bc00f37
commit 4e7c686e46

View File

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