make/Init.gmk
changeset 32720 7e0e586a6817
parent 32715 4d558a41a1ec
child 32920 5bea8a04f0a5
--- a/make/Init.gmk	Fri Sep 25 08:43:21 2015 +0200
+++ b/make/Init.gmk	Fri Sep 25 08:58:49 2015 +0200
@@ -341,7 +341,11 @@
     post-compare-build:
         # Compare first and second build. Ignore any error code from compare.sh.
 	$(ECHO) "Comparing between comparison rebuild (this/new) and baseline (other/old)"
-	+(cd $(OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) -o $(OUTPUT_ROOT).OLD || true)
+        ifneq ($(COMPARE_BUILD_COMP_DIR), )
+	  +(cd $(OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) -2dirs $(OUTPUT_ROOT)/$(COMPARE_BUILD_COMP_DIR) $(OUTPUT_ROOT).OLD/$(COMPARE_BUILD_COMP_DIR) || true)
+        else
+	  +(cd $(OUTPUT_ROOT) && ./compare.sh $(COMPARE_BUILD_COMP_OPTS) -o $(OUTPUT_ROOT).OLD || true)
+        endif
 
   .PHONY: print-targets print-modules reconfigure main on-failure
 endif