summaryrefslogtreecommitdiffstats
path: root/CMakePresets.json
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2024-12-20 19:51:38 +0200
committerGitHub <noreply@github.com>2024-12-20 09:51:38 -0800
commit8e55b498d9813db2d872a5ef522f8bec5cb0bcb1 (patch)
treee6505dfbc7feb4d7f7d504a8ef362aba569b1888 /CMakePresets.json
parente93cb8a4d1bb7d835bc3762ce25ced422e75e97a (diff)
Fix WASM build (#5925)
There is no objcopy and strip for WASM, so disable debug info stripping. This closes #5924.
Diffstat (limited to 'CMakePresets.json')
-rw-r--r--CMakePresets.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakePresets.json b/CMakePresets.json
index b81309af4..6367ebee4 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -22,6 +22,7 @@
"binaryDir": "${sourceDir}/build.em",
"cacheVariables": {
"SLANG_SLANG_LLVM_FLAVOR": "DISABLE",
+ "SLANG_ENABLE_SPLIT_DEBUG_INFO": "OFF",
"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"