mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
More YosysJS stuff
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user