diff options
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r-- | kernel/driver.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc index 69a7b8e15..d0ebdde77 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -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(); |