commit a039f786496c58f4e9e7e93c455df827f8ee4671
parent 22817aafde05d898a576d30630f385b64a1d9dc5
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 1 Apr 2022 23:42:29 -0400
ci: patch vcpkg to re-enable LTO on Windows
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.appveyor.yml b/.appveyor.yml
@@ -111,6 +111,11 @@ for:
- if "%ARCH%" == "x64" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%ARCH%" == "x86" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
build_script:
+ # fix vcpkg toolchain reverting CMake policies to v3.7.2
+ # (TODO: remove on the next image update)
+ - git -C C:\Tools\vcpkg fetch
+ - git -C C:\Tools\vcpkg restore -s 5cf60186a241e84e8232641ee973395d4fde90e1 scripts\buildsystems\vcpkg.cmake
+
- cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DVCPKG_TARGET_TRIPLET=%ARCH%-windows-static
-DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake