Fix WASI build

This commit is contained in:
Miodrag Milanovic 2025-12-10 11:03:11 +01:00
parent 860b49dd80
commit 11732d3082
1 changed files with 4 additions and 0 deletions

View File

@ -1103,7 +1103,11 @@ tn_vi * Tn_SolveSat( const char * pFileNameIn, const char * pFileNameOut, int Se
sprintf( pCommand, "%s --seed=%d %s %s > %s", pKissat, Seed, fVerboseSolver ? "": "-q", pFileNameIn, pFileNameOut ); sprintf( pCommand, "%s --seed=%d %s %s > %s", pKissat, Seed, fVerboseSolver ? "": "-q", pFileNameIn, pFileNameOut );
//if ( fVerbose ) //if ( fVerbose )
// printf( "Running command line: %s\n", pCommand ); // printf( "Running command line: %s\n", pCommand );
#if defined(__wasm)
if ( 1 )
#else
if ( system( pCommand ) == -1 ) if ( system( pCommand ) == -1 )
#endif
{ {
printf( "Command \"%s\" did not succeed.\n", pCommand ); printf( "Command \"%s\" did not succeed.\n", pCommand );
return 0; return 0;