From 964b7afa7454e593301e75806adf1aeeec8e32c5 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 17 May 2021 22:27:41 +0000 Subject: [PATCH] smex: don't corrupt the build with a bogus .ldc output This made troubleshooting CMake issues more complicated. Signed-off-by: Marc Herbert --- smex/smex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smex/smex.c b/smex/smex.c index 47c210af2..cda281fa6 100644 --- a/smex/smex.c +++ b/smex/smex.c @@ -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; }