Revert "Revert "[lldb][modules] Disable Clang Modules in source/Host directory on macOS""

This reverts commit c7bd61d4a7 because it
breaks the underlying issue is apparently not yet resolved. This only
affects the modules build.
This commit is contained in:
Jonas Devlieghere 2022-08-03 14:37:48 -07:00
parent 11322203b7
commit 9ffcc85fbe
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,11 @@
if (APPLE AND LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)
# The arpa/inet.h header used in the files here is providing a miscompiled
# htonl function on macOS <= 10.15 when local submodule visibility is active.
# Disabling modules in this directory until this is is fixed.
# See rdar://problem/62886385
remove_module_flags()
endif()
macro(add_host_subdirectory group)
list(APPEND HOST_SOURCES ${ARGN})
source_group(${group} FILES ${ARGN})