keep debug symbols for windows builds
This commit is contained in:
parent
b2e37e7af3
commit
3a29bddb5e
2 changed files with 7 additions and 1 deletions
|
@ -1126,6 +1126,12 @@ if(WIN32 AND MINGW AND ENABLE_STATIC)
|
|||
endif()
|
||||
|
||||
if(WIN32)
|
||||
if(MSVC)
|
||||
target_compile_options(stratagus PRIVATE "$<$<CONFIG:Release>:/Zi>")
|
||||
target_link_options(stratagus PRIVATE "$<$<CONFIG:Release>:/DEBUG>")
|
||||
target_link_options(stratagus PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
|
||||
target_link_options(stratagus PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
|
||||
endif()
|
||||
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lSDL2main")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS}")
|
||||
endif()
|
||||
|
|
|
@ -12,7 +12,7 @@ before_build:
|
|||
- cmake -G "Visual Studio 16 2019" -T v141_xp -A win32 -DCMAKE_PREFIX_PATH="%cd%\\dependencies" -DENABLE_NSIS=ON -DENABLE_STDIO_REDIRECT=ON ..
|
||||
- cd ..
|
||||
after_build:
|
||||
- 7z a compiled-binaries.zip %cd%\build\stratagus.exe %cd%\build\dependencies\bin\*.dll
|
||||
- 7z a compiled-binaries.zip %cd%\build\*.pdb %cd%\build\stratagus.exe %cd%\build\dependencies\bin\*.dll
|
||||
artifacts:
|
||||
- path: build\Stratagus-*.exe
|
||||
- path: compiled-binaries.zip
|
||||
|
|
Loading…
Reference in a new issue