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) {