Skip to content

Commit

Permalink
ci: patch vcpkg to re-enable LTO on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Apr 2, 2022
1 parent 22817aa commit a039f78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a039f78

Please sign in to comment.