Fix dependency file (-M) generation.

The dependency file may be written by ivlpp as it loads its own
dependencies. Make sure this doesn't mess up the dependencies that
are already written by the main program. This requires that ivl,
ivlpp and iverilog (driver) cooperate on the opening of the
dependency file.
This commit is contained in:
Stephen Williams
2009-02-25 13:59:28 -08:00
parent 1c17412223
commit a10bd139ab
3 changed files with 11 additions and 1 deletions
+1
View File
@@ -73,6 +73,7 @@ bool load_module(const char*type)
if(depend_file) {
fprintf(depend_file, "%s\n", path);
fflush(depend_file);
}
if (ivlpp_string) {