https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/166599
The VM_MEMORY_SANITIZER was added in macOs 10.15 and friends. Support using the constant on older OSes. Fixes #156144 >From 65d5ed908bfab3bced0b3b7cde72846cb1e5f0ab Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere <[email protected]> Date: Wed, 5 Nov 2025 09:47:51 -0800 Subject: [PATCH] [debugserver] Fix debugserver build on < macOS 10.15 The VM_MEMORY_SANITIZER was added in macOs 10.15 and friends. Support using the constant on older OSes. Fixes #156144 --- lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp b/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp index 9d0d60fdaaed9..34c5c9a025e5b 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp @@ -15,6 +15,11 @@ #include <cassert> #include <mach/mach_vm.h> +// From <mach/vm_statistics.h>, but not on older OSs. +#ifndef VM_MEMORY_SANITIZER +#define VM_MEMORY_SANITIZER 99 +#endif + MachVMRegion::MachVMRegion(task_t task) : m_task(task), m_addr(INVALID_NUB_ADDRESS), m_err(), m_start(INVALID_NUB_ADDRESS), m_size(0), m_depth(-1), _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
