Skip to content

Commit f8243ce

Browse files
committed
[LLDB] Remove signature from python copy when injecting ASAN runtime
1 parent 7a7237b commit f8243ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/test/API/lit.cfg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def find_python_interpreter():
9090
)
9191

9292
shutil.copy(real_python, copied_python)
93+
# macOS 15+ restricts injecting the ASAN runtime to only user-compiled code.
94+
subprocess.check_call(["/usr/bin/codesign", "--remove-signature", copied_python])
9395

9496
# Now make sure the copied Python works. The Python in Xcode has a relative
9597
# RPATH and cannot be copied.

0 commit comments

Comments
 (0)