From 7ebc3968761b01202a36c57bb98e90067e733074 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 1 Nov 2022 11:35:38 +1100 Subject: compiler.txt: ensure file exists before comparison (#18921) --- builddefs/common_rules.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'builddefs') diff --git a/builddefs/common_rules.mk b/builddefs/common_rules.mk index 22746b92a3..5d100fec59 100644 --- a/builddefs/common_rules.mk +++ b/builddefs/common_rules.mk @@ -332,6 +332,7 @@ $1/asflags.txt: $1/force echo '$$($1_ASFLAGS)' | cmp -s - $$@ || echo '$$($1_ASFLAGS)' > $$@ $1/compiler.txt: $1/force + test -f $$@ || touch $$@ $$(CC) --version | cmp -s - $$@ || $$(CC) --version > $$@ endef -- cgit v1.2.3