Skip to content

Commit 8b204c5

Browse files
committed
Fix needsBuild for NativeImageBuildTask
1 parent 0184ee0 commit 8b204c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/mx.sdk/mx_sdk_vm_ng.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def needsBuild(self, newestInput) -> Tuple[bool, str]:
473473
ts = TimeStampFile(self.subject.output_file())
474474
if not ts.exists():
475475
return True, f"{ts.path} does not exist"
476-
if ts.isOlderThan(newestInput):
476+
if newestInput and ts.isOlderThan(newestInput):
477477
return True, f"{ts} is older than {newestInput}"
478478
previous_build_args = []
479479
command_file = self._get_command_file()

0 commit comments

Comments
 (0)