comparison make/InitSupport.gmk @ 55732:5f3df8029bfd

8227834: build.log output from failing commands : include the hs_error file path in case of crashes in build Reviewed-by: tbell
author mbaesken
date Wed, 17 Jul 2019 09:58:42 +0200
parents 95794e32352e
children
comparison
equal deleted inserted replaced
38:303713f0c84d 39:b326c83785ab
422 $(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \ 422 $(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \
423 $(PRINTF) "* For target $(notdir $(basename $(logfile))):\n" $(NEWLINE) \ 423 $(PRINTF) "* For target $(notdir $(basename $(logfile))):\n" $(NEWLINE) \
424 $(if $(filter all, $(LOG_REPORT)), \ 424 $(if $(filter all, $(LOG_REPORT)), \
425 $(GREP) -v -e "^Note: including file:" < $(logfile) || true $(NEWLINE) \ 425 $(GREP) -v -e "^Note: including file:" < $(logfile) || true $(NEWLINE) \
426 , \ 426 , \
427 ($(GREP) -v -e "^Note: including file:" < $(logfile) || true) | $(HEAD) -n 12 $(NEWLINE) \ 427 ($(GREP) -v -e "^Note: including file:" < $(logfile) || true) | $(HEAD) -n 15 $(NEWLINE) \
428 if test `$(WC) -l < $(logfile)` -gt 12; then \ 428 if test `$(WC) -l < $(logfile)` -gt 15; then \
429 $(ECHO) " ... (rest of output omitted)" ; \ 429 $(ECHO) " ... (rest of output omitted)" ; \
430 fi $(NEWLINE) \ 430 fi $(NEWLINE) \
431 ) \ 431 ) \
432 ) \ 432 ) \
433 $(PRINTF) "\n* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs.\n" $(NEWLINE) \ 433 $(PRINTF) "\n* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs.\n" $(NEWLINE) \