From 8e55b498d9813db2d872a5ef522f8bec5cb0bcb1 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Fri, 20 Dec 2024 19:51:38 +0200 Subject: Fix WASM build (#5925) There is no objcopy and strip for WASM, so disable debug info stripping. This closes #5924. --- CMakePresets.json | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakePresets.json') 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" -- cgit v1.2.3