Browse Source

compiler.txt: ensure file exists before comparison (#18921)

Ryan 2 năm trước cách đây
mục cha
commit
7ebc396876
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      builddefs/common_rules.mk

+ 1 - 0
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