mirror of
https://github.com/YosysHQ/yosys
synced 2026-04-27 22:33:36 +00:00
Fix compilation for emcc
This commit is contained in:
parent
dd8ebf7873
commit
7b679eecb3
4 changed files with 8 additions and 3 deletions
|
|
@ -341,7 +341,11 @@ int run_command(const std::string &command, std::function<void(const std::string
|
|||
if (!process_line)
|
||||
return system(command.c_str());
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
FILE *f = nullptr;
|
||||
#else
|
||||
FILE *f = popen(command.c_str(), "r");
|
||||
#endif
|
||||
if (f == nullptr)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue