mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-08 04:20:49 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user