From 95c5b85e889b6a5eaa1b7b68e65954a540cdb678 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 4 Oct 2006 18:46:42 +0000 Subject: [PATCH] Unlink .vpp files without --debug git-svn-id: file://localhost/svn/verilator/trunk/verilator@808 77ca24e4-aefa-0310-84f0-b9a241c72d87 --- Changes | 2 ++ bin/verilator | 2 +- src/V3Read.cpp | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 5ca963dd6..b42f99059 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Don't core dump on errors when not under --debug. [Allan Cochrane] +**** Remove .vpp intermediate files when not under --debug. + * Verilator 3.620 10/04/2006 *** Support simple inout task ports. [Eugene Weber] diff --git a/bin/verilator b/bin/verilator index eea3dfc3d..26eded8f6 100755 --- a/bin/verilator +++ b/bin/verilator @@ -720,7 +720,7 @@ In certain optimization modes, it also creates: It also creates internal files that can be mostly ignored: - {each_verilog_module}.vpp // Post-processed verilog source code + {each_verilog_module}.vpp // Post-processed verilog (--debug) {prefix}.flags_vbin // Verilator dependencies {prefix}.flags_vpp // Pre-processor dependencies {prefix}{misc}.d // Make dependencies (-MMD) diff --git a/src/V3Read.cpp b/src/V3Read.cpp index ab8468002..6e3f57a8c 100644 --- a/src/V3Read.cpp +++ b/src/V3Read.cpp @@ -91,6 +91,10 @@ void V3Read::readFile(FileLine* fileline, const string& modfilename, bool inLibr if (!v3Global.opt.preprocOnly()) { lexFile (vppfilename, modfilename); } + + if (!V3Error::debugDefault()) { + unlink (vppfilename.c_str()); + } } void V3Read::lexFile(const string& vppfilename, const string& modname) {