projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0471d15
)
Also look for yosys-abc in parent dir on win32
author
Clifford Wolf
<clifford@clifford.at>
Sat, 18 Oct 2014 17:01:44 +0000
(19:01 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 18 Oct 2014 17:01:44 +0000
(19:01 +0200)
passes/abc/abc.cc
patch
|
blob
|
history
diff --git
a/passes/abc/abc.cc
b/passes/abc/abc.cc
index 79aa067d76bad209ae4277f85e92c2a691e4deb4..9d6d9457968ebfabed48fe22e93c74f0b8fee875 100644
(file)
--- 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))) {