Explorar o código

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

Ryan %!s(int64=2) %!d(string=hai) anos
pai
achega
7ebc396876
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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