From 627743432a548a0e97fe0ea71686bf6db246a536 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 31 Mar 2025 15:19:23 +0200 Subject: [PATCH] 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. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 5c41d57fb..4b01063cc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -445,8 +445,8 @@ TEST_PACKAGES_NONBAREMETAL = \ $(nil) # Report platforms on which each standard library package is known to pass tests -jointmp := $(shell echo /tmp/join.$$$$) report-stdlib-tests-pass: + $(eval jointmp := $(shell echo /tmp/join.$$$$)) @for t in $(TEST_PACKAGES_DARWIN); do echo "$$t darwin"; done | sort > $(jointmp).darwin @for t in $(TEST_PACKAGES_LINUX); do echo "$$t linux"; done | sort > $(jointmp).linux @for t in $(TEST_PACKAGES_FAST) $(TEST_PACKAGES_SLOW); do echo "$$t darwin linux wasi windows"; done | sort > $(jointmp).portable