Skip to content

Commit

Permalink
Try adding compile option to disable assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Feb 7, 2024
1 parent bbde53b commit da72800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/xbox_nxdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit da72800

Please sign in to comment.