aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2023-05-19 10:22:27 -0700
committerAdrian Prantl <aprantl@apple.com>2023-05-19 10:22:51 -0700
commitaa2c2c8e3c3fe74f2b374b3fdc703ca7b05f80a0 (patch)
tree94a31ea940ea406ccd5465e60a2f119907479307 /lldb/source/Plugins/ScriptInterpreter/Python
parentbe37e3e25982c9346df883fcc61e7b60311594a4 (diff)
downloadllvm-aa2c2c8e3c3fe74f2b374b3fdc703ca7b05f80a0.zip
llvm-aa2c2c8e3c3fe74f2b374b3fdc703ca7b05f80a0.tar.gz
llvm-aa2c2c8e3c3fe74f2b374b3fdc703ca7b05f80a0.tar.bz2
Work around a modularization issue in the Python headers.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
index d59b7bb..7236116 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
@@ -1,3 +1,9 @@
+if (APPLE AND LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)
+ # Work around an issue with the Python headers, which have a modular include
+ # inside an extern "C" block.
+ remove_module_flags()
+endif()
+
if(NOT LLDB_PYTHON_RELATIVE_PATH)
message(FATAL_ERROR "LLDB_PYTHON_RELATIVE_PATH is not set.")
endif()