Skip to content

Commit

Permalink
fix emsdk export functions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocoutinhox committed Aug 15, 2024
1 parent dbb8b94 commit 6278dad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/wasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,10 @@ def run_task_generate():
exported_functions = ""

if exported_functions:
function_list = exported_functions.strip("[]").replace(" ", "").split(',')
function_list.extend(['_malloc', '_free'])
function_list = (
exported_functions.strip("[]").replace(" ", "").split(",")
)
function_list.extend(["_malloc", "_free"])
complete_functions_list = '["' + '","'.join(function_list) + '"]'
else:
complete_functions_list = '["_malloc", "_free"]'
Expand Down

0 comments on commit 6278dad

Please sign in to comment.