Files
clang-p2996/lldb/test/API/macosx/ctf/Makefile
Jonas Devlieghere 0e285a13eb [lldb] Support compressed CTF
Add support for compressed CTF data. The flags in the header can
indicate whether the CTF body is compressed with zlib deflate. This
patch supports inflating the data before parsing.

Differential revision: https://reviews.llvm.org/D155221
2023-07-13 15:10:25 -07:00

31 lines
570 B
Makefile

C_SOURCES := test.c
MAKE_DSYM := YES
ifeq "$(COMPRESS_CTF)" "YES"
COMPRESS := -c
else
COMPRESS :=
endif
all: a.out a.ctf
include Makefile.rules
a.ctf: a.out.dSYM
ctfconvert $(COMPRESS) \
-l a \
-o a.ctf \
a.out.dSYM/Contents/Resources/DWARF/a.out
$(OBJCOPY) \
-R __DWARF,__debug_line \
-R __DWARF,__debug_aranges \
-R __DWARF,__debug_info \
-R __DWARF,__debug_abbrev \
-R __DWARF,__debug_str \
-R __DWARF,__apple_names \
-R __DWARF,__apple_namespac \
-R __DWARF,__apple_types \
-R __DWARF,__apple_objc \
a.ctf a.ctf
rm -rf a.out.dSYM