From d55af43ebd4c1819dffdb46be3e090243b635f66 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sat, 31 Aug 2019 23:06:28 +0800 Subject: [PATCH] appveyor, CMake: Remove -flto; Resume mingw static This is probably the cause of Crypto++ segfault (?) --- appveyor.yml | 2 +- src/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 9abea79..7b209be 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,7 +9,7 @@ environment: # Tell msys2 to inherit the current directory when starting the shell CHERE_INVOKING: 1 matrix: - # - BUILD_TYPE: mingw + - BUILD_TYPE: mingw - BUILD_TYPE: msvc platform: diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5abd8b3..9659e57 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,9 +106,9 @@ else() endif() endif() - if (NOT DEBUG) - add_compile_options("-flto") - endif() + # if (NOT DEBUG) + # add_compile_options("-flto") + # endif() endif() add_subdirectory(common)