From da72800ac8751592f5301ce4934c75e2267312dc Mon Sep 17 00:00:00 2001 From: staphen Date: Tue, 6 Feb 2024 21:57:55 -0500 Subject: [PATCH] Try adding compile option to disable assertions --- .github/workflows/xbox_nxdk.yml | 2 +- CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/xbox_nxdk.yml b/.github/workflows/xbox_nxdk.yml index 9a5db82ab089..30793eb52dc7 100644 --- a/.github/workflows/xbox_nxdk.yml +++ b/.github/workflows/xbox_nxdk.yml @@ -55,7 +55,7 @@ jobs: - name: Build working-directory: ${{github.workspace}} shell: bash - run: cmake --build build-xbox -j $(nproc) --target nxdk_xbe + run: cmake --build build-xbox --verbose -j $(nproc) --target nxdk_xbe - name: Upload-Package if: ${{ !env.ACT }} diff --git a/CMakeLists.txt b/CMakeLists.txt index b17b79b0009c..803e335d106b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -496,6 +496,9 @@ if(UWP_LIB) endif() if(NXDK) + if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") + add_definitions(-DNDEBUG) + endif() target_link_libraries(${BIN_TARGET} PRIVATE "${NXDK_DIR}/lib/libnxdk_automount_d.lib") target_link_options(${BIN_TARGET} PRIVATE "-include:_automount_d_drive")