File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 4444 uses : DiligentGraphics/github-action/configure-cmake@v1
4545 with :
4646 build-type : ${{ matrix.build_type }}
47- cmake-args : " -DDILIGENT_BUILD_CORE_INCLUDE_TEST=ON -DDILIGENT_BUILD_CORE_TESTS=ON"
47+ cmake-args : " -DDILIGENT_BUILD_CORE_INCLUDE_TEST=ON -DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON "
4848
4949 - name : Build
5050 if : success()
Original file line number Diff line number Diff line change @@ -210,6 +210,13 @@ function(set_common_target_properties TARGET)
210210 endif ()
211211 endif () # if(MSVC)
212212
213+ if (PLATFORM_EMSCRIPTEN)
214+ if ((${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) AND (TARGET_TYPE STREQUAL EXECUTABLE) AND DILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO)
215+ # Strip debug info from WebAssembly binary. Without this option, the toolchain crashes on CI.
216+ target_link_options (${TARGET} PRIVATE "SHELL: -gseparate-dwarf -g0" )
217+ endif ()
218+ endif ()
219+
213220 if (COMMAND custom_post_configure_target)
214221 custom_post_configure_target(${TARGET} )
215222 endif ()
You can’t perform that action at this time.
0 commit comments