From 8c9567635224cc1d9997e050a8b33e5e43de416b Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Thu, 24 May 2018 22:49:53 +0400 Subject: [PATCH 1/3] Preserve AppVeyor builds --- appveyor.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index eae4bd5b1..ede57d890 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -55,6 +55,10 @@ build_script: - cmd: if %PLATFORM%==x64 set build=MSVC%msvc%_64 - cmd: msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" +after_build: + - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Debug\ -xr"!*.pdb" + - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Debug\*.pdb + test: off #notifications: @@ -63,3 +67,9 @@ test: off # - # on_build_failure: true # on_build_status_changed: true + +artifacts: + - path: OpenMW_MSVC%msvc%_x64.zip + name: OpenMW_MSVC%msvc%_x64 + - path: OpenMW_MSVC%msvc%_x64_pdb.zip + name: OpenMW_MSVC%msvc%_x64_pdb From 77c5e85e8db8748a89fe286bc212c37986c3b73f Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Thu, 24 May 2018 22:51:25 +0400 Subject: [PATCH 2/3] Enable release builds --- appveyor.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ede57d890..21fb7e1d6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,8 +18,8 @@ platform: - x64 configuration: - - Debug -# - Release +# - Debug + - Release # For the Qt, Boost, CMake, etc installs #os: Visual Studio 2017 @@ -56,8 +56,8 @@ build_script: - cmd: msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" after_build: - - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Debug\ -xr"!*.pdb" - - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Debug\*.pdb + - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Release\ -xr"!*.pdb" + - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Release\*.pdb test: off From 48e15dabc3c70a5bfcc35c1277d188818759c42b Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 25 May 2018 12:16:13 +0400 Subject: [PATCH 3/3] Try to generate PDB for release builds --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd809b58c..bfef2d328 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -360,6 +360,8 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-parameter") endif() elseif (MSVC) + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} /Zi /bigobj") + set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF /INCREMENTAL:NO") # Enable link-time code generation globally for all linking if (OPENMW_LTO_BUILD) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")