add bigobj flag

This commit is contained in:
Lion Kortlepel 2022-02-17 11:42:37 +01:00
parent 86ad28abdc
commit 687b4e4235
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
2 changed files with 4 additions and 7 deletions

View File

@ -44,13 +44,6 @@ jobs:
name: BeamMP-Server.exe
path: ${{github.workspace}}/build-windows/Release/BeamMP-Server.exe
- name: Configure CMake for debug
shell: bash
working-directory: ${{github.workspace}}/build-windows
env:
beammp_sentry_url: ${{ secrets.BEAMMP_SECRET_SENTRY_URL }}
run: cmake $GITHUB_WORKSPACE -DSENTRY_BACKEND=breakpad -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE='${{ runner.workspace }}/b/vcpkg/scripts/buildsystems/vcpkg.cmake' -DVCPKG_TARGET_TRIPLET=x64-windows-static -DBEAMMP_SECRET_SENTRY_URL="$beammp_sentry_url" -DCMAKE_CXX_FLAGS="/bigobj"
- name: Build debug
working-directory: ${{github.workspace}}/build-windows
shell: bash

View File

@ -44,6 +44,10 @@ endif()
set(SENTRY_BACKEND breakpad)
add_subdirectory("deps/sentry-native")
if (MSVC)
add_definitions(/bigobj)
endif ()
message(STATUS "Setting compiler flags")
if (WIN32)