From 0627a4715d0aae2acf9d986657cacf5a7dd073a5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Sep 2006 13:37:22 +0000 Subject: r18265: print out the failling command metze (This used to be commit 9d2ab28ba1a119dff1a97147934c03e712c7148d) --- source4/main.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/main.mk b/source4/main.mk index 73c242ff50..1463438890 100644 --- a/source4/main.mk +++ b/source4/main.mk @@ -340,7 +340,10 @@ include/includes.d: include/includes.h $(CC_CHECKER) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \ fi @echo "Compiling $<" - @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ + @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ && exit 0;\ + echo "The following command failed:" 1>&2;\ + echo "$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@" 1>&2;\ + $(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ >/dev/null 2>&1 .h.h.gch: @echo "Precompiling $<" -- cgit