WASI build fix for solver command

This commit is contained in:
Miodrag Milanovic 2025-12-22 12:31:08 +01:00
parent 11732d3082
commit 35d19a9f33
1 changed files with 5 additions and 1 deletions

View File

@ -2844,6 +2844,10 @@ int CmdCommandSolver( Abc_Frame_t * pAbc, int argc, char **argv )
goto usage;
}
#if defined(__wasm)
fprintf( pAbc->Err, "Unsupported command.\n" );
return 1;
#else
// Check if solver binary exists in current directory or PATH
char * pSolverName;
if ( (pFile = fopen( "./solver", "r" )) != NULL )
@ -2913,7 +2917,7 @@ int CmdCommandSolver( Abc_Frame_t * pAbc, int argc, char **argv )
// Clean up the temporary file
unlink( TempFileName );
#endif
return 0;
usage: