From 5f40c4704f6f2ab027b12c3f61765d8a2090c92a Mon Sep 17 00:00:00 2001 From: Catherine Date: Thu, 7 Jul 2022 08:28:00 +0000 Subject: Add support for WASI platform in Wln_ConvertToRtl. --- src/base/wln/wlnRtl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/wln/wlnRtl.c b/src/base/wln/wlnRtl.c index fa0f0cd5..8a8e0a32 100644 --- a/src/base/wln/wlnRtl.c +++ b/src/base/wln/wlnRtl.c @@ -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 ) { -- cgit v1.2.3