smex: don't corrupt the build with a bogus .ldc output

This made troubleshooting CMake issues more complicated.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-05-17 22:27:41 +00:00 committed by Liam Girdwood
parent 7e1fd0adef
commit 964b7afa74
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ int main(int argc, char *argv[])
if (ret) {
fprintf(stderr, "error: unable to write dictionaries, %d\n",
ret);
/* Don't corrupt the build with an empty or incomplete output */
unlink(image.ldc_out_file);
goto out;
}