Skip to content

Commit e903494

Browse files
authored
[lldb] Fix TestVTableValue.py test_overwrite_vtable test (llvm#164910)
Some machines have read-only vtables but this test expects to overwrite them. Use -no_data_const to ensure the vtable is writable
1 parent 242c716 commit e903494

File tree

1 file changed

+6
-0
lines changed
  • lldb/test/API/functionalities/vtable

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
CXX_SOURCES := main.cpp
22

3+
ifeq "$(OS)" "Darwin"
4+
# Make vtables writable for test_overwrite_vtable test
5+
# The -no_data_const flag prevents vtables from being placed in __DATA_CONST
6+
LD_EXTRAS := -Wl,-no_data_const
7+
endif
8+
39
include Makefile.rules

0 commit comments

Comments
 (0)