Skip to content

Commit

Permalink
CMake: moved DILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO option to Core
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 1, 2025
1 parent f632005 commit daf47ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ else()
endif()

option(DILIGENT_BUILD_SAMPLE_BASE_ONLY "Build only SampleBase project" OFF)
option(DILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO "Strip debug information from Emscripten build" OFF)
option(DILIGENT_EMSCRIPTEN_INCLUDE_COI_SERVICE_WORKER "Include cross-origin isolation service worker in each emscripten build" OFF)

function(add_sample_app APP_NAME IDE_FOLDER SOURCE INCLUDE SHADERS ASSETS)
Expand Down
5 changes: 0 additions & 5 deletions SampleBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,6 @@ elseif(PLATFORM_EMSCRIPTEN)
${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}.html
@ONLY
)

target_link_options(${TARGET_NAME} PRIVATE "SHELL: -s WASM_BIGINT -s WASM=1")
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug" AND DILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO)
target_link_options(${TARGET_NAME} PRIVATE "SHELL: -gseparate-dwarf -g0")
endif()
endfunction()

else()
Expand Down

0 comments on commit daf47ab

Please sign in to comment.