8223998: Missing MakeDir in ExecuteWithLog
authorihse
Thu, 17 Oct 2019 10:35:18 +0200
changeset 58663 11a574b352d0
parent 58662 5b7a967da646
child 58664 e3618c902d17
child 58665 30a5049a36bb
8223998: Missing MakeDir in ExecuteWithLog Reviewed-by: tbell, erikj
make/common/MakeBase.gmk
--- a/make/common/MakeBase.gmk	Wed Oct 16 17:03:40 2019 +0200
+++ b/make/common/MakeBase.gmk	Thu Oct 17 10:35:18 2019 +0200
@@ -564,8 +564,8 @@
 # Param 1 - The path to base the name of the log file / command line file on
 # Param 2 - The command to run
 ExecuteWithLog = \
-  $(call LogCmdlines, Exececuting: [$(strip $2)]) \
-  $(call MakeDir, $(dir $(strip $1))) \
+  $(call LogCmdlines, Executing: [$(strip $2)]) \
+  $(call MakeDir, $(dir $(strip $1)) $(MAKESUPPORT_OUTPUTDIR)/failure-logs) \
   $(call WriteFile, $2, $(strip $1).cmdline) \
   ( $(RM) $(strip $1).log && $(strip $2) > >($(TEE) -a $(strip $1).log) 2> >($(TEE) -a $(strip $1).log >&2) || \
       ( exitcode=$(DOLLAR)? && \