Use /proc/self/exe on Cygwin as well.
authorYury Gribov <tetra2005@gmail.com>
Sun, 7 Aug 2016 20:34:33 +0000 (21:34 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 8 Aug 2016 10:00:27 +0000 (12:00 +0200)
kernel/yosys.cc

index 8da57fd4e9f7aea91e7b3e297c1485ffda4cd66b..42ccf13f7deec429dab2ba33393ec2b21f349781 100644 (file)
@@ -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];