mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Add --make json to enable integration with non-make/cmake build systems (#5799)
This commit is contained in:
@@ -310,6 +310,16 @@ bool V3Os::filenameIsRel(const string& filename) VL_PURE {
|
||||
#endif
|
||||
}
|
||||
|
||||
string V3Os::filenameSlashPath(const string& path) VL_PURE {
|
||||
#if defined(_WIN32) || defined(__MINGW32__)
|
||||
string slashedPath = path;
|
||||
std::replace(slashedPath.begin(), slashedPath.end(), '\\', '/');
|
||||
return slashedPath;
|
||||
#else
|
||||
return path;
|
||||
#endif
|
||||
}
|
||||
|
||||
//######################################################################
|
||||
// File utilities
|
||||
|
||||
|
||||
Reference in New Issue
Block a user