Unverified Commit 8f5c823f by Catherine Committed by GitHub

Merge pull request #17 from YosysHQ/wasi-wlnRtl

Add support for WASI platform in Wln_ConvertToRtl
parents f159bef6 5f40c470
...@@ -121,6 +121,9 @@ char * Wln_GetYosysName() ...@@ -121,6 +121,9 @@ char * Wln_GetYosysName()
} }
int Wln_ConvertToRtl( char * pCommand, char * pFileTemp ) int Wln_ConvertToRtl( char * pCommand, char * pFileTemp )
{ {
#if defined(__wasm)
return 0;
#else
FILE * pFile; FILE * pFile;
if ( system( pCommand ) == -1 ) if ( system( pCommand ) == -1 )
{ {
...@@ -134,6 +137,7 @@ int Wln_ConvertToRtl( char * pCommand, char * pFileTemp ) ...@@ -134,6 +137,7 @@ int Wln_ConvertToRtl( char * pCommand, char * pFileTemp )
} }
fclose( pFile ); fclose( pFile );
return 1; return 1;
#endif
} }
Rtl_Lib_t * Wln_ReadSystemVerilog( char * pFileName, char * pTopModule, int fCollapse, int fVerbose ) Rtl_Lib_t * Wln_ReadSystemVerilog( char * pFileName, char * pTopModule, int fCollapse, int fVerbose )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment