From: Yury Gribov Date: Sun, 7 Aug 2016 20:34:33 +0000 (+0100) Subject: Use /proc/self/exe on Cygwin as well. X-Git-Tag: yosys-0.7~150 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7730d43bb4d5b44ec76e1080f4baf2f6b26807f;p=yosys.git Use /proc/self/exe on Cygwin as well. --- 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];