Skip to content

Commit

Permalink
[lldb/testsuite] Make TestObjCIvarStripped.py working with codesigning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fredriss committed Mar 19, 2020
1 parent acd641c commit 59918d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lldb/test/API/lang/objc/objc-ivar-stripped/Makefile
Expand Up @@ -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

0 comments on commit 59918d3

Please sign in to comment.