[lldb/testsuite] Make TestObjCIvarStripped.py working with codesigning

This test was stripping a binary generated by Makefile.rules which is
potentially codesigned. Stripping invalidates the code signature, so
we might need to re-sign after stripping.
This commit is contained in:
Fred Riss 2020-03-18 20:20:42 -07:00
parent acd641c19d
commit 59918d3793
1 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,10 @@ LD_EXTRAS := -lobjc -framework Foundation
all: a.out.stripped
include Makefile.rules
a.out.stripped: a.out.dSYM
strip -o a.out.stripped a.out
include Makefile.rules
ifneq "$(CODESIGN)" ""
$(CODESIGN) -fs - a.out.stripped
endif