File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 88 matrix :
99 os : ["windows-latest", "ubuntu-20.04", "macos-14"]
1010 build_type : ["Debug", "Release"]
11- exclude :
12- # Exclude MacOS-Release
13- - os : " macos-14"
14- build_type : " Release"
15-
1611 include :
1712 - os : " windows-latest"
1813 build_type : " Release"
1914 host_name : " Win10"
2015 # Do not build WebGPU on Windows/Release as it is extremely slow
21- cmake_args : " -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO =ON -DDILIGENT_NO_WEBGPU =ON"
16+ cmake_args : " -DDILIGENT_NO_WEBGPU =ON -DDILIGENT_NO_ARCHIVER=ON -DDILIGENT_EMSCRIPTEN_DISABLE_LTO =ON"
2217
2318 - os : " windows-latest"
2419 build_type : " Debug"
2520 host_name : " Win10"
2621 cmake_args : " -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON"
2722
2823 - os : " ubuntu-20.04"
24+ build_type : " Debug"
2925 host_name : " Linux"
3026 cmake_args : " -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON"
3127
28+ - os : " ubuntu-20.04"
29+ build_type : " Release"
30+ host_name : " Linux"
31+ # Do not build WebGPU on Linux/Release as it is extremely slow
32+ cmake_args : " -DDILIGENT_NO_WEBGPU=ON -DDILIGENT_NO_ARCHIVER=ON -DDILIGENT_EMSCRIPTEN_DISABLE_LTO=ON"
33+
3234 - os : " macos-14"
35+ build_type : " Debug"
3336 host_name : " MacOS"
3437 cmake_args : " -DDILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO=ON"
3538
39+ - os : " macos-14"
40+ build_type : " Release"
41+ host_name : " MacOS"
42+ cmake_args : " -DDILIGENT_EMSCRIPTEN_DISABLE_LTO=ON"
43+
3644 runs-on : ${{ matrix.os }}
3745 name : ${{ matrix.host_name }} -> Emscripten, ${{ matrix.build_type }}
3846
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ endif()
1111
1212option (DILIGENT_BUILD_SAMPLE_BASE_ONLY "Build only SampleBase project" OFF )
1313option (DILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO "Strip debug information from Emscripten build" OFF )
14+ option (DILIGENT_EMSCRIPTEN_DISABLE_LTO "Disable lint time optiomizations for Emscripten build" OFF )
1415
1516function (add_sample_app APP_NAME IDE_FOLDER SOURCE INCLUDE SHADERS ASSETS)
1617
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ elseif(PLATFORM_EMSCRIPTEN)
135135 if (${CMAKE_BUILD_TYPE} STREQUAL "Debug" AND DILIGENT_EMSCRIPTEN_STRIP_DEBUG_INFO)
136136 target_link_options (${TARGET_NAME} PRIVATE "SHELL: -gseparate-dwarf -g0" )
137137 endif ()
138+
139+ if (DILIGENT_EMSCRIPTEN_DISABLE_LTO)
140+ target_link_options (${TARGET_NAME} PRIVATE "SHELL: -s ERROR_ON_WASM_CHANGES_AFTER_LINK" )
141+ endif ()
138142 endfunction ()
139143
140144else ()
You can’t perform that action at this time.
0 commit comments