mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
More YosysJS stuff
This commit is contained in:
parent
33e80b96c7
commit
3e5e9a3889
5 changed files with 83 additions and 105 deletions
|
@ -73,6 +73,8 @@ int getopt(int argc, char **argv, const char *optstring)
|
|||
USING_YOSYS_NAMESPACE
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
# include <sys/stat.h>
|
||||
# include <sys/types.h>
|
||||
|
||||
extern "C" int main(int, char**);
|
||||
extern "C" void run(const char*);
|
||||
|
@ -80,6 +82,8 @@ extern "C" const char *prompt();
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
mkdir("/work", 0777);
|
||||
chdir("/work");
|
||||
log_files.push_back(stdout);
|
||||
log_error_stderr = true;
|
||||
yosys_banner();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue