Files
clang-p2996/lldb/test/API/lang/objc/hidden-ivars/Makefile
Fred Riss acd641c19d [lldb/testsuite] Slightly rework TestHiddenIvars.py
The test was stripping the binaries from the Python
code. Unfortunately, if running on darwin embedded in a context that
requires code signing, the stripping was invalidating the signature,
thus breaking the test.

This patch moves the stripping to the Makefile and resigns the
stripped binaries if required.
2020-03-18 20:52:28 -07:00

28 lines
633 B
Makefile

DYLIB_NAME := InternalDefiner
DYLIB_OBJC_SOURCES := InternalDefiner.m
OBJC_SOURCES := main.m
LD_EXTRAS = -framework Foundation
all: a.out libInternalDefiner.dylib stripped
include Makefile.rules
ifeq "$(MAKE_DSYM)" "YES"
stripped: a.out.dSYM
endif
stripped: a.out libInternalDefiner.dylib
mkdir stripped
strip -Sx a.out -o stripped/a.out
strip -Sx libInternalDefiner.dylib -o stripped/libInternalDefiner.dylib
ifneq "$(CODESIGN)" ""
$(CODESIGN) -fs - stripped/a.out
endif
ifneq "$(CODESIGN)" ""
$(CODESIGN) -fs - stripped/libInternalDefiner.dylib
endif
ifeq "$(MAKE_DSYM)" "YES"
cp -r a.out.dSYM stripped/a.out.dSYM
endif