Merge pull request #17 from YosysHQ/wasi-wlnRtl

Add support for WASI platform in Wln_ConvertToRtl
This commit is contained in:
Catherine 2022-07-07 08:48:47 +00:00 committed by GitHub
commit 8f5c823fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 )
{