diff options
| -rw-r--r-- | source/slang-wasm/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang-wasm/CMakeLists.txt b/source/slang-wasm/CMakeLists.txt index 152ed5094..3523b8aa4 100644 --- a/source/slang-wasm/CMakeLists.txt +++ b/source/slang-wasm/CMakeLists.txt @@ -24,6 +24,11 @@ if(EMSCRIPTEN) # To generate binding code target_link_options( slang-wasm - PUBLIC "--bind" "--emit-tsd" "interface.d.ts" "-s" "EXPORT_ES6=1" + PUBLIC + "--bind" + "--emit-tsd" "interface.d.ts" + "-sEXPORT_ES6=1" + "-sMODULARIZE=1" + "-sEXPORTED_RUNTIME_METHODS=['FS']" ) endif() |
