From 1a0571bd780f90154b43771d6828379252e1d88e Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Fri, 9 Jun 2017 16:33:42 +0100 Subject: [PATCH] topology: delete output file if parsing fails. Currently the binary output file is left when parsing fails. This confuses GNU Make if the parsing fails and causes the compilation to partially complete. Signed-off-by: Liam Girdwood Signed-off-by: Takashi Iwai --- topology/topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/topology/topology.c b/topology/topology.c index 33c3276..ffe2f05 100644 --- a/topology/topology.c +++ b/topology/topology.c @@ -108,6 +108,7 @@ int main(int argc, char *argv[]) if (err < 0) { fprintf(stderr, _("failed to compile context %s\n"), source_file); snd_tplg_free(snd_tplg); + unlink(output_file); return 1; } -- 2.47.1