Patch to support MinGW compilation
|Assignee:||Wilson Snyder||% Done:|
Thought it shouldn't be difficult to port verilator to MinGW(no cygwin1.dll dependencies). Just a few lines of preprocessor directives. Makefile_obj was cribbing about __errno linker reference error(Probably because _errno is what is defined in mingw). Thought of correcting this in MinGW, but then libm is not referenced at all in verilator. So just removed -lm and it still worked. Guess libm is not being referenced at all.
Files change: V3Files.cpp V3Options.cpp Makefile_obj
Patch attached: verilator-3.720-mingw-enable.patch
Please review and if you find it ok, you can include it in your next release.