From cde607c09cc5964b4e7836da08adb7b558a3a275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Mon, 17 Apr 2017 22:02:18 +0100 Subject: [PATCH] Deps file can only be created if object file specified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Niño Díaz --- src/asm/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asm/main.c b/src/asm/main.c index 19bfab71..e21c1544 100644 --- a/src/asm/main.c +++ b/src/asm/main.c @@ -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); }