diff options
author | Claire Xen <claire@clairexen.net> | 2022-02-15 17:57:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 17:57:27 +0100 |
commit | 57ef73b2053ad644cfecd608dafdb9b848fc6cdb (patch) | |
tree | 0c3ff28e48071a2c921b7ed1fe7218124c1df629 /src/base/cmd | |
parent | 9b245d9f6910c048e9bbcf95ee5dee46f2f24f2c (diff) | |
parent | 264dfc7ed414476438e4a858258f5516d7b863c6 (diff) | |
download | abc-57ef73b2053ad644cfecd608dafdb9b848fc6cdb.tar.gz abc-57ef73b2053ad644cfecd608dafdb9b848fc6cdb.tar.bz2 abc-57ef73b2053ad644cfecd608dafdb9b848fc6cdb.zip |
Merge pull request #10 from YosysHQ/yosys-experimental
Integrate write_cex and cexinfo and some fixes in write_cex output code
Diffstat (limited to 'src/base/cmd')
-rw-r--r-- | src/base/cmd/cmd.c | 4 | ||||
-rw-r--r-- | src/base/cmd/cmdUtils.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/base/cmd/cmd.c b/src/base/cmd/cmd.c index a0042443..259c9d78 100644 --- a/src/base/cmd/cmd.c +++ b/src/base/cmd/cmd.c @@ -2175,7 +2175,11 @@ void Gia_ManGnuplotShow( char * pPlotFileName ) { char Command[1000]; sprintf( Command, "%s %s ", pProgNameGnuplot, pPlotFileName ); +#if defined(__wasm) + if ( 1 ) +#else if ( system( Command ) == -1 ) +#endif { fprintf( stdout, "Cannot execute \"%s\".\n", Command ); return; diff --git a/src/base/cmd/cmdUtils.c b/src/base/cmd/cmdUtils.c index 3409543f..c10e9134 100644 --- a/src/base/cmd/cmdUtils.c +++ b/src/base/cmd/cmdUtils.c @@ -52,6 +52,9 @@ int cmdCheckShellEscape( Abc_Frame_t * pAbc, int argc, char ** argv) int RetValue; if (argv[0][0] == '!') { +#if defined(__wasm) + RetValue = -1; +#else const int size = 4096; int i; char * buffer = ABC_ALLOC(char, 10000); @@ -70,7 +73,7 @@ int cmdCheckShellEscape( Abc_Frame_t * pAbc, int argc, char ** argv) // the parts, we lose information. So a command like // `!ls "file name"` will be sent to the system as // `ls file name` which is a BUG - +#endif return 1; } else |