mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:36:30 +01:00
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:
parent
7b1c23848d
commit
1a0571bd78
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue