Deps file can only be created if object file specified

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-04-17 22:02:18 +01:00
parent 739b113f57
commit cde607c09c

View File

@@ -403,6 +403,9 @@ main(int argc, char *argv[])
}
if (dependfile) {
if (!tzObjectname)
errx(1, "Dependency files can only be created if an output object file is specified.\n");
fprintf(dependfile, "%s: %s\n", tzObjectname, tzMainfile);
}