Skip to content

Commit a039f78

Browse files
committed
ci: patch vcpkg to re-enable LTO on Windows
1 parent 22817aa commit a039f78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.appveyor.yml

+5
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ for:
111111
- if "%ARCH%" == "x64" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
112112
- if "%ARCH%" == "x86" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
113113
build_script:
114+
# fix vcpkg toolchain reverting CMake policies to v3.7.2
115+
# (TODO: remove on the next image update)
116+
- git -C C:\Tools\vcpkg fetch
117+
- git -C C:\Tools\vcpkg restore -s 5cf60186a241e84e8232641ee973395d4fde90e1 scripts\buildsystems\vcpkg.cmake
118+
114119
- cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
115120
-DVCPKG_TARGET_TRIPLET=%ARCH%-windows-static
116121
-DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake

0 commit comments

Comments
 (0)