mirror of https://github.com/YosysHQ/yosys.git
Merge branch 'YosysHQ:main' into main
This commit is contained in:
commit
c0e3ffa2da
2
Makefile
2
Makefile
|
|
@ -176,7 +176,7 @@ ifeq ($(OS), Haiku)
|
|||
CXXFLAGS += -D_DEFAULT_SOURCE
|
||||
endif
|
||||
|
||||
YOSYS_VER := 0.53+26
|
||||
YOSYS_VER := 0.53+39
|
||||
YOSYS_MAJOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f1)
|
||||
YOSYS_MINOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f2)
|
||||
YOSYS_COMMIT := $(shell echo $(YOSYS_VER) | cut -d'.' -f3)
|
||||
|
|
|
|||
10
kernel/io.cc
10
kernel/io.cc
|
|
@ -251,7 +251,15 @@ bool check_is_directory(const std::string& dirname)
|
|||
{
|
||||
#if defined(_WIN32)
|
||||
struct _stat info;
|
||||
if (_stat(dirname.c_str(), &info) != 0)
|
||||
auto dirname_ = dirname;
|
||||
|
||||
/* On old versions of Visual Studio and current versions on MinGW,
|
||||
_stat will fail if the path ends with a trailing slash. */
|
||||
if (dirname.back() == '/' || dirname.back() == '\\') {
|
||||
dirname_ = dirname.substr(0, dirname.length() - 1);
|
||||
}
|
||||
|
||||
if (_stat(dirname_.c_str(), &info) != 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue