From 2f8e3ce37578633592246c620a0f817ddec30f58 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Tue, 1 Nov 2022 10:00:50 +1100 Subject: [PATCH] compiler.txt: ensure file exists before comparison --- builddefs/common_rules.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/builddefs/common_rules.mk b/builddefs/common_rules.mk index 22746b92a39c..5d100fec5982 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