summaryrefslogtreecommitdiff
path: root/CMakePresets.json
diff options
context:
space:
mode:
Diffstat (limited to 'CMakePresets.json')
-rw-r--r--CMakePresets.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakePresets.json b/CMakePresets.json
index 7b847e03e..47a733ee2 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -22,7 +22,9 @@
"binaryDir": "${sourceDir}/build.em",
"cacheVariables": {
"SLANG_SLANG_LLVM_FLAVOR": "DISABLE",
- "CMAKE_EXE_LINKER_FLAGS": "-sASSERTIONS -sALLOW_MEMORY_GROWTH"
+ "CMAKE_C_FLAGS_INIT": "-fwasm-exceptions -Os",
+ "CMAKE_CXX_FLAGS_INIT": "-fwasm-exceptions -Os",
+ "CMAKE_EXE_LINKER_FLAGS": "-sASSERTIONS -sALLOW_MEMORY_GROWTH -fwasm-exceptions --export=__cpp_exception"
}
},
{
@@ -89,7 +91,7 @@
"configurePreset": "emscripten",
"configuration": "Release",
"targets": [
- "slang"
+ "slang-wasm"
]
},
{