Skip to content

Commit 6277434

Browse files
aykevldeadprogram
authored andcommitted
Makefile: create random filename inside rule
Don't create the temporary name in advance (which needs a subprocess call), only do that when needed inside the report-stdlib-tests-pass rule.
1 parent 5d92d4d commit 6277434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ TEST_PACKAGES_NONBAREMETAL = \
445445
$(nil)
446446

447447
# Report platforms on which each standard library package is known to pass tests
448-
jointmp := $(shell echo /tmp/join.$$$$)
449448
report-stdlib-tests-pass:
449+
$(eval jointmp := $(shell echo /tmp/join.$$$$))
450450
@for t in $(TEST_PACKAGES_DARWIN); do echo "$$t darwin"; done | sort > $(jointmp).darwin
451451
@for t in $(TEST_PACKAGES_LINUX); do echo "$$t linux"; done | sort > $(jointmp).linux
452452
@for t in $(TEST_PACKAGES_FAST) $(TEST_PACKAGES_SLOW); do echo "$$t darwin linux wasi windows"; done | sort > $(jointmp).portable

0 commit comments

Comments
 (0)