From 05903f708856a70d68bf41bbfb2b06620508dee0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 15 Nov 2024 00:37:58 -0800 Subject: Embed core module in wasm build. (#5569) * Embed core module in wasm build. * format code * add uintptr_t case. --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- CMakePresets.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakePresets.json') diff --git a/CMakePresets.json b/CMakePresets.json index a92440eee..34a1c15df 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -22,6 +22,7 @@ "binaryDir": "${sourceDir}/build.em", "cacheVariables": { "SLANG_SLANG_LLVM_FLAVOR": "DISABLE", + "SLANG_EMBED_CORE_MODULE": "ON", "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" @@ -71,7 +72,8 @@ "inherits": "default", "description": "Build the compile time generators used in building Slang", "cacheVariables": { - "SLANG_SLANG_LLVM_FLAVOR": "DISABLE" + "SLANG_SLANG_LLVM_FLAVOR": "DISABLE", + "SLANG_ENABLE_SLANG_RHI": false } } ], -- cgit v1.2.3