Skip to content

Commit

Permalink
compiler.txt: ensure file exists before comparison (#18921)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Nov 1, 2022
1 parent 5974d98 commit 7ebc396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builddefs/common_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7ebc396

Please sign in to comment.