From c581fd70e088654b15729cd9f486c4d4a4b2b044 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Tue, 21 Oct 2025 18:47:36 -0700 Subject: [PATCH] [lldb] Fix TestVTableValue.py test_overwrite_vtable test Some machines have read-only vtables but this test expects to overwrite them Use -no_data_const to ensure the vtable is writable --- lldb/test/API/functionalities/vtable/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lldb/test/API/functionalities/vtable/Makefile b/lldb/test/API/functionalities/vtable/Makefile index 99998b20bcb05..cbd7d472fb768 100644 --- a/lldb/test/API/functionalities/vtable/Makefile +++ b/lldb/test/API/functionalities/vtable/Makefile @@ -1,3 +1,9 @@ CXX_SOURCES := main.cpp +ifeq "$(OS)" "Darwin" + # Make vtables writable for test_overwrite_vtable test + # The -no_data_const flag prevents vtables from being placed in __DATA_CONST + LD_EXTRAS := -Wl,-no_data_const +endif + include Makefile.rules