@@ -89,18 +89,18 @@ BUILDTIMESDIR=$(OUTPUTDIR)/make-support/build-times
8989
9090# Record starting time for build of a sub repository.
9191define RecordStartTime
92- $(DATE) '+%Y %m %d %H %M %S' | $(NAWK ) '{ print $$1,$$2,$$3,$$4,$$5,$$6,($$4*3600+$$5*60+$$6) }' > $(BUILDTIMESDIR)/build_time_start_$(strip $1) && \
92+ $(DATE) '+%Y %m %d %H %M %S' | $(AWK ) '{ print $$1,$$2,$$3,$$4,$$5,$$6,($$4*3600+$$5*60+$$6) }' > $(BUILDTIMESDIR)/build_time_start_$(strip $1) && \
9393 $(DATE) '+%Y-%m-%d %H:%M:%S' > $(BUILDTIMESDIR)/build_time_start_$(strip $1)_human_readable
9494endef
9595
9696# Record ending time and calculate the difference and store it in a
9797# easy to read format. Handles builds that cross midnight. Expects
9898# that a build will never take 24 hours or more.
9999define RecordEndTime
100- $(DATE) '+%Y %m %d %H %M %S' | $(NAWK ) '{ print $$1,$$2,$$3,$$4,$$5,$$6,($$4*3600+$$5*60+$$6) }' > $(BUILDTIMESDIR)/build_time_end_$(strip $1)
100+ $(DATE) '+%Y %m %d %H %M %S' | $(AWK ) '{ print $$1,$$2,$$3,$$4,$$5,$$6,($$4*3600+$$5*60+$$6) }' > $(BUILDTIMESDIR)/build_time_end_$(strip $1)
101101 $(DATE) '+%Y-%m-%d %H:%M:%S' > $(BUILDTIMESDIR)/build_time_end_$(strip $1)_human_readable
102102 $(ECHO) `$(CAT) $(BUILDTIMESDIR)/build_time_start_$(strip $1)` `$(CAT) $(BUILDTIMESDIR)/build_time_end_$(strip $1)` $1 | \
103- $(NAWK ) '{ F=$$7; T=$$14; if (F > T) { T+=3600*24 }; D=T-F; H=int(D/3600); \
103+ $(AWK ) '{ F=$$7; T=$$14; if (F > T) { T+=3600*24 }; D=T-F; H=int(D/3600); \
104104 M=int((D-H*3600)/60); S=D-H*3600-M*60; printf("%02d:%02d:%02d %s\n",H,M,S,$$15); }' \
105105 > $(BUILDTIMESDIR)/build_time_diff_$(strip $1)
106106endef
@@ -439,6 +439,8 @@ endif
439439# This is normally not needed since we use the FIXPATH prefix for command lines,
440440# but might be needed in certain circumstances.
441441ifeq ($(call isTargetOs, windows), true)
442+ FixPathArgs = \
443+ $(shell $(FIXPATH) cmd /c echo $1)
442444 ifeq ($(call isBuildOsEnv, windows.wsl), true)
443445 FixPath = \
444446 $(shell $(WSLPATH) -m $1)
@@ -447,6 +449,8 @@ ifeq ($(call isTargetOs, windows), true)
447449 $(shell $(CYGPATH) -m $1)
448450 endif
449451else
452+ FixPathArgs = \
453+ $1
450454 FixPath = \
451455 $1
452456endif
0 commit comments