ruricolist / overlord

Build system in Common Lisp
MIT License
60 stars 2 forks source link

Fix crash on SBCL when output file does not exist #24

Closed goose121 closed 3 years ago

goose121 commented 3 years ago

It seems that SBCL signals an error from cl:file-write-date when the file in question does not exist, rather than returning nil as the spec seems to suggest (however ambiguously). This patch checks whether the file exists before opening it, which prevents building file targets from crashing when the output file(s) do not already exist.

ruricolist commented 3 years ago

Thanks!