Add support for WASI platform in Wln_ConvertToRtl.

This commit is contained in:
Catherine 2022-07-07 08:28:00 +00:00
parent f159bef6c3
commit 5f40c4704f
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,9 @@ char * Wln_GetYosysName()
}
int Wln_ConvertToRtl( char * pCommand, char * pFileTemp )
{
#if defined(__wasm)
return 0;
#else
FILE * pFile;
if ( system( pCommand ) == -1 )
{
@ -134,6 +137,7 @@ int Wln_ConvertToRtl( char * pCommand, char * pFileTemp )
}
fclose( pFile );
return 1;
#endif
}
Rtl_Lib_t * Wln_ReadSystemVerilog( char * pFileName, char * pTopModule, int fCollapse, int fVerbose )
{