[Lldb-commits] [PATCH] D79632: [lldb][modules] Disable Clang Modules in source/Host directory on macOS

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri May 8 09:38:05 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7cf4ab13af8a: [lldb][modules] Disable Clang Modules in source/Host directory on macOS (authored by teemperor).
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79632/new/

https://reviews.llvm.org/D79632

Files:
  lldb/source/Host/CMakeLists.txt


Index: lldb/source/Host/CMakeLists.txt
===================================================================
--- lldb/source/Host/CMakeLists.txt
+++ lldb/source/Host/CMakeLists.txt
@@ -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})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79632.262891.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200508/ab11fe58/attachment.bin>


More information about the lldb-commits mailing list