From 29d1911f50ea49e0e63e7cecaf921cbfea409837 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Tue, 6 Mar 2018 17:23:28 +0100 Subject: [PATCH] chore(.appveyor.yml,src/CMakeLists): make cxx and linker flags configurable and use them to disable slow LTO on AppVeyor --- .appveyor.yml | 8 +++++++- src/CMakeLists.txt | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 96fd20813e..cfb0325a80 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -15,7 +15,13 @@ install: build_script: - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" - cd %APPVEYOR_BUILD_FOLDER% && mkdir build && cd build - - if %CFG% == MSVC (cmake ../src -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -G "NMake Makefiles" && + # disable slow LTO + - if %CFG% == MSVC (cmake ../src + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake + -DLEAN_EXTRA_CXX_FLAGS=/GL- + -DLEAN_EXTRA_LINKER_FLAGS_MSVC=/LTCG:OFF + -G "NMake Makefiles" && cmake --build .) - if %CFG% == MINGW64 (C:\msys64\usr\bin\bash -lc "exec 0