Fix .c files to be treated as .cpp, bug930.

This commit is contained in:
Wilson Snyder 2015-06-09 07:28:51 -04:00
parent da254af8d5
commit 7578ef889f
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,9 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix MinGW compiler error, bug929. [Hans Tichelaar]
**** Fix .c files to be treated as .cpp, bug930. [Jonathon Donaldson]
* Verilator 3.874 2015-06-06
*** Add pkg-config .pc file, bug919. [Stefan Wallentowitz]

View File

@ -960,6 +960,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
if (suffixed(filename.c_str(), ".cpp")
|| suffixed(filename.c_str(), ".cxx")
|| suffixed(filename.c_str(), ".cc")
|| suffixed(filename.c_str(), ".c")
|| suffixed(filename.c_str(), ".sp")) {
V3Options::addCppFile(filename);
}