3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-06 17:11:01 +00:00

WASI now support filesystem

This commit is contained in:
Miodrag Milanovic 2026-06-05 09:18:00 +02:00
parent d7093743b8
commit 5f2456ac03
2 changed files with 0 additions and 10 deletions

View file

@ -4621,11 +4621,7 @@ struct ReadPass : public Pass {
if (use_verific) { if (use_verific) {
args[0] = "verific"; args[0] = "verific";
} else { } else {
#if !defined(__wasm)
args[0] = "read_verilog_file_list"; args[0] = "read_verilog_file_list";
#else
cmd_error(args, 1, "Command files are not supported on this platform.\n");
#endif
} }
Pass::call(design, args); Pass::call(design, args);
return; return;

View file

@ -26,9 +26,7 @@
* *
*/ */
#if !defined(__wasm)
#include <filesystem> #include <filesystem>
#endif
#include "verilog_frontend.h" #include "verilog_frontend.h"
#include "verilog_lexer.h" #include "verilog_lexer.h"
@ -709,8 +707,6 @@ struct VerilogDefines : public Pass {
} }
} VerilogDefines; } VerilogDefines;
#if !defined(__wasm)
static void parse_file_list(const std::string &file_list_path, RTLIL::Design *design, bool relative_to_file_list_path) static void parse_file_list(const std::string &file_list_path, RTLIL::Design *design, bool relative_to_file_list_path)
{ {
std::ifstream flist(file_list_path); std::ifstream flist(file_list_path);
@ -790,6 +786,4 @@ struct VerilogFileList : public Pass {
} }
} VerilogFilelist; } VerilogFilelist;
#endif
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END