3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-31 07:14:55 +00:00

Added emscripten (emcc) support to build system and some build fixes

This commit is contained in:
Clifford Wolf 2014-08-22 16:09:13 +02:00
parent ba83a7bdc6
commit 98442e019d
11 changed files with 101 additions and 14 deletions

View file

@ -22,7 +22,10 @@
#include "kernel/log.h"
#include <string.h>
#include <dirent.h>
#include <readline/readline.h>
#ifdef YOSYS_ENABLE_READLINE
# include <readline/readline.h>
#endif
using RTLIL::id2cstr;
@ -770,6 +773,7 @@ struct ShowPass : public Pass {
}
if (flag_pause) {
#ifdef YOSYS_ENABLE_READLINE
char *input = NULL;
while ((input = readline("Press ENTER to continue (or type 'shell' to open a shell)> ")) != NULL) {
if (input[strspn(input, " \t\r\n")] == 0)
@ -780,6 +784,9 @@ struct ShowPass : public Pass {
break;
}
}
#else
log_cmd_error("This version of yosys is built without readline support => 'show -pause' is not available.\n");
#endif
}
log_pop();