ref: cde607c09cc5964b4e7836da08adb7b558a3a275
parent: 739b113f57915fbcb6c3bb10c97cc443b7fce4aa
author: Antonio Niño Díaz <[email protected]>
date: Mon Apr 17 18:02:18 EDT 2017
Deps file can only be created if object file specified Signed-off-by: Antonio Niño Díaz <[email protected]>
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -403,6 +403,9 @@
}
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);
}