From f7730d43bb4d5b44ec76e1080f4baf2f6b26807f Mon Sep 17 00:00:00 2001 From: Yury Gribov Date: Sun, 7 Aug 2016 21:34:33 +0100 Subject: [PATCH] Use /proc/self/exe on Cygwin as well. --- kernel/yosys.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 8da57fd4e..42ccf13f7 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -622,7 +622,7 @@ struct TclPass : public Pass { } TclPass; #endif -#if defined(__linux__) +#if defined(__linux__) || defined(__CYGWIN__) std::string proc_self_dirname() { char path[PATH_MAX]; -- 2.30.2