mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 06:46:33 +00:00
[lldb][test] Use xcrun -f strip
for API tests on Darwin (#111842)
A follow-up for https://github.com/llvm/llvm-project/pull/111816. This is to fix buildbot failure https://lab.llvm.org/staging/#/builders/195/builds/4242. TestSymbolFileJSON.py doesn't pass with llvm-strip on macOS. Apparently, llvm-strip/llvm-objcopy can't clean symbols from Mach-O nlists.
This commit is contained in:
parent
f59b0c7603
commit
058ede06c4
@ -10,6 +10,7 @@ import lldbsuite.test.lldbplatformutil as lldbplatformutil
|
||||
import lldbsuite.test.lldbutil as lldbutil
|
||||
from lldbsuite.test import configuration
|
||||
from lldbsuite.test_event import build_exception
|
||||
from lldbsuite.support import seven
|
||||
|
||||
|
||||
class Builder:
|
||||
@ -190,6 +191,9 @@ class Builder:
|
||||
if not util_paths["DWP"]:
|
||||
del util_paths["DWP"]
|
||||
|
||||
if lldbplatformutil.platformIsDarwin():
|
||||
util_paths["STRIP"] = seven.get_command_output("xcrun -f strip")
|
||||
|
||||
for var, path in util_paths.items():
|
||||
utils.append("%s=%s" % (var, path))
|
||||
|
||||
|
@ -3,6 +3,6 @@ C_SOURCES := main.c
|
||||
all: stripped.out
|
||||
|
||||
stripped.out : a.out
|
||||
strip a.out -o stripped.out
|
||||
$(STRIP) a.out -o stripped.out
|
||||
|
||||
include Makefile.rules
|
||||
|
Loading…
x
Reference in New Issue
Block a user