summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-18 19:01:44 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-18 19:01:44 +0200
commitbb631c6f5c0026b0920996205329dae5836f9a1b (patch)
treeebc08606ef85b4ac92def6d398a669af9e57087a
parent0471d158d955804c011338c5c664dfa7a38aed1f (diff)
Also look for yosys-abc in parent dir on win32
-rw-r--r--passes/abc/abc.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/passes/abc/abc.cc b/passes/abc/abc.cc
index 79aa067d..9d6d9457 100644
--- a/passes/abc/abc.cc
+++ b/passes/abc/abc.cc
@@ -1106,6 +1106,11 @@ struct AbcPass : public Pass {
bool fast_mode = false, dff_mode = false, keepff = false, cleanup = true;
int lut_mode = 0;
+#ifdef _WIN32
+ if (!check_file_exists(exe_file + ".exe") && check_file_exists(proc_self_dirname() + "..\\yosys-abc.exe"))
+ exe_file = proc_self_dirname() + "..\\yosys-abc";
+#endif
+
size_t argidx;
char pwd [PATH_MAX];
if (!getcwd(pwd, sizeof(pwd))) {