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.
It seems that SBCL signals an error from
cl:file-write-date
when the file in question does not exist, rather than returningnil
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.