mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-23 03:50:28 +08:00
compiler.txt: ensure file exists before comparison (#18921)
This commit is contained in:
parent
5974d989fe
commit
7ebc396876
|
@ -332,6 +332,7 @@ $1/asflags.txt: $1/force
|
||||||
echo '$$($1_ASFLAGS)' | cmp -s - $$@ || echo '$$($1_ASFLAGS)' > $$@
|
echo '$$($1_ASFLAGS)' | cmp -s - $$@ || echo '$$($1_ASFLAGS)' > $$@
|
||||||
|
|
||||||
$1/compiler.txt: $1/force
|
$1/compiler.txt: $1/force
|
||||||
|
test -f $$@ || touch $$@
|
||||||
$$(CC) --version | cmp -s - $$@ || $$(CC) --version > $$@
|
$$(CC) --version | cmp -s - $$@ || $$(CC) --version > $$@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue