mirror of https://github.com/YosysHQ/abc.git
Add WASI support in Gia_StochProcessOne.
This commit is contained in:
parent
89a5395fc6
commit
daad9ede01
|
|
@ -67,7 +67,11 @@ Gia_Man_t * Gia_StochProcessOne( Gia_Man_t * p, char * pScript, int Rand, int Ti
|
||||||
sprintf( FileName, "%06x.aig", Rand );
|
sprintf( FileName, "%06x.aig", Rand );
|
||||||
Gia_AigerWrite( p, FileName, 0, 0, 0 );
|
Gia_AigerWrite( p, FileName, 0, 0, 0 );
|
||||||
sprintf( Command, "./abc -q \"&read %s; %s; &write %s\"", FileName, pScript, FileName );
|
sprintf( Command, "./abc -q \"&read %s; %s; &write %s\"", FileName, pScript, FileName );
|
||||||
|
#if defined(__wasm)
|
||||||
|
if ( 1 )
|
||||||
|
#else
|
||||||
if ( system( (char *)Command ) )
|
if ( system( (char *)Command ) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
fprintf( stderr, "The following command has returned non-zero exit status:\n" );
|
fprintf( stderr, "The following command has returned non-zero exit status:\n" );
|
||||||
fprintf( stderr, "\"%s\"\n", (char *)Command );
|
fprintf( stderr, "\"%s\"\n", (char *)Command );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue