summaryrefslogtreecommitdiffstats
path: root/builddefs
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-11-01 11:35:38 +1100
committerGitHub <noreply@github.com>2022-11-01 00:35:38 +0000
commit7ebc3968761b01202a36c57bb98e90067e733074 (patch)
tree12f6db581a5ea7cf408cd8eee954c632e9114ea6 /builddefs
parent5974d989fe72f6c576901a065bee4487a58c351d (diff)
compiler.txt: ensure file exists before comparison (#18921)
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/common_rules.mk1
1 files changed, 1 insertions, 0 deletions
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