Skip to content

Commit

Permalink
Disabled DEATH_TRACE_ASYNC on Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Oct 19, 2024
1 parent af9ff44 commit 228fdbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
rm -f ./Content/Translations/*.po
git config --global --add safe.directory '*'
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D CMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/Switch.cmake -D NCINE_PREFERRED_BACKEND=SDL2
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D CMAKE_TOOLCHAIN_FILE=${DEVKITPRO}/cmake/Switch.cmake -D NCINE_PREFERRED_BACKEND=SDL2 -D DEATH_TRACE_ASYNC=OFF
- name: 'Build'
run: |
Expand Down
2 changes: 2 additions & 0 deletions cmake/ncine_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ function(ncine_apply_compiler_options target)
target_compile_definitions(${target} PUBLIC "DEATH_TRACE")
if(DEATH_TRACE_ASYNC)
target_compile_definitions(${target} PUBLIC "DEATH_TRACE_ASYNC")
elseif(NCINE_WITH_THREADS)
message(STATUS "Asynchronous processing of event tracing is explicitly disabled")
endif()
endif()

Expand Down

0 comments on commit 228fdbf

Please sign in to comment.