diff options
author | whitequark <whitequark@whitequark.org> | 2020-05-01 21:28:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 21:28:20 +0000 |
commit | bbde2419420a86635baf2b730ebe58ed6edca5bb (patch) | |
tree | 0dbd707b90ba392f540e63fe41d2179b3b97440d /passes/techmap/abc9_exe.cc | |
parent | 667f38fe533c9f6676b5944d801a5fb33938ef8b (diff) | |
parent | b43c282e4e0de53b9323a5d8d85b07bc73324a17 (diff) | |
download | yosys-bbde2419420a86635baf2b730ebe58ed6edca5bb.tar.gz yosys-bbde2419420a86635baf2b730ebe58ed6edca5bb.tar.bz2 yosys-bbde2419420a86635baf2b730ebe58ed6edca5bb.zip |
Merge pull request #2001 from whitequark/wasi
Add WASI platform support
Diffstat (limited to 'passes/techmap/abc9_exe.cc')
-rw-r--r-- | passes/techmap/abc9_exe.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/passes/techmap/abc9_exe.cc b/passes/techmap/abc9_exe.cc index bad91a224..0bf547921 100644 --- a/passes/techmap/abc9_exe.cc +++ b/passes/techmap/abc9_exe.cc @@ -420,11 +420,15 @@ struct Abc9ExePass : public Pass { } size_t argidx; +#if defined(__wasm) + const char *pwd = "."; +#else char pwd [PATH_MAX]; if (!getcwd(pwd, sizeof(pwd))) { log_cmd_error("getcwd failed: %s\n", strerror(errno)); log_abort(); } +#endif for (argidx = 1; argidx < args.size(); argidx++) { std::string arg = args[argidx]; if (arg == "-exe" && argidx+1 < args.size()) { |