[Lldb-commits] [PATCH] D48782: LLDB Test Suite: Provide an Option to run all tests with Dwarf Package Format (DWP).
Puyan Lotfi via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 13 12:05:40 PDT 2018
plotfi updated this revision to Diff 155452.
https://reviews.llvm.org/D48782
Files:
packages/Python/lldbsuite/test/make/Makefile.rules
Index: packages/Python/lldbsuite/test/make/Makefile.rules
===================================================================
--- packages/Python/lldbsuite/test/make/Makefile.rules
+++ packages/Python/lldbsuite/test/make/Makefile.rules
@@ -235,6 +235,22 @@
CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(ARCH_CFLAGS) $(CFLAGS_EXTRAS)
endif
+ifneq (,$(wildcard $(DWP)))
+ MAKE_DWP=YES
+ VALID_DWP_BIN=YES
+endif
+
+ifeq "$(MAKE_DWP)" "YES"
+ MAKE_DWO=YES
+ ifndef DWP
+ $(error dwp not found, please set DWP.)
+ endif
+ ifneq "$(VALID_DWP_BIN)" "YES"
+ $(error Invalid dwp, please set DWP to a path that exists.)
+ endif
+endif
+
+
ifeq "$(MAKE_DWO)" "YES"
CFLAGS += -gsplit-dwarf
endif
@@ -508,6 +524,10 @@
else
$(EXE) : $(OBJECTS) $(ARCHIVE_NAME)
$(LD) $(OBJECTS) $(LDFLAGS) $(ARCHIVE_NAME) -o "$(EXE)"
+ifeq "$(MAKE_DWP)" "YES"
+ $(DWP) -e "$(EXE)" -o "$(EXE).dwp"
+ rm -f $(OBJECTS:.o=.dwo)
+endif
endif
#----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48782.155452.patch
Type: text/x-patch
Size: 1057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180713/6f0b80f6/attachment.bin>
More information about the lldb-commits
mailing list