Fix mkdir on MSYS2, msg2614.

This commit is contained in:
Wilson Snyder
2018-08-27 18:07:52 -04:00
parent 15abb4d590
commit c93d28050e
5 changed files with 21 additions and 7 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ int sc_main(int argc, char* argv[]) {
cout << "Enabling waves into logs/vlt_dump.vcd...\n";
tfp = new VerilatedVcdSc;
top->trace(tfp, 99);
mkdir("logs", 0777);
Verilated::mkdir("logs");
tfp->open("logs/vlt_dump.vcd");
}
#endif
@@ -134,7 +134,7 @@ int sc_main(int argc, char* argv[]) {
// Coverage analysis (since test passed)
#if VM_COVERAGE
mkdir("logs", 0777);
Verilated::mkdir("logs");
VerilatedCov::write("logs/coverage.dat");
#endif