Delete all temporary files even when using -E flag

The -E flag causes the driver to exit early. Be careful to delete
all the various temporary files even in this case.
This commit is contained in:
Michael 2008-04-04 21:22:46 -07:00 committed by Stephen Williams
parent 13958cf374
commit 1bc56fcc93
1 changed files with 4 additions and 1 deletions

View File

@ -806,8 +806,11 @@ int main(int argc, char **argv)
rc = system(cmd);
remove(source_path);
fclose(iconfig_file);
if ( ! getenv("IVERILOG_ICONFIG"))
if ( ! getenv("IVERILOG_ICONFIG")) {
remove(iconfig_path);
remove(defines_path);
remove(compiled_defines_path);
}
if (rc != 0) {
if (WIFEXITED(rc)) {