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 <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Liam Girdwood 2017-06-09 16:33:42 +01:00 committed by Takashi Iwai
parent 7b1c23848d
commit 1a0571bd78

View file

@ -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;
}