Skip to content

Commit 8e55b49

Browse files
authored
Fix WASM build (shader-slang#5925)
There is no objcopy and strip for WASM, so disable debug info stripping. This closes shader-slang#5924.
1 parent e93cb8a commit 8e55b49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakePresets.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"binaryDir": "${sourceDir}/build.em",
2323
"cacheVariables": {
2424
"SLANG_SLANG_LLVM_FLAVOR": "DISABLE",
25+
"SLANG_ENABLE_SPLIT_DEBUG_INFO": "OFF",
2526
"CMAKE_C_FLAGS_INIT": "-fwasm-exceptions -Os",
2627
"CMAKE_CXX_FLAGS_INIT": "-fwasm-exceptions -Os",
2728
"CMAKE_EXE_LINKER_FLAGS": "-sASSERTIONS -sALLOW_MEMORY_GROWTH -fwasm-exceptions --export=__cpp_exception"

0 commit comments

Comments
 (0)