From 82d694df3ac4bf2d36711fe16e4e889596478e5f Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sat, 31 Dec 2016 04:48:51 -0800 Subject: [PATCH] disable LTO on Win32 for now Due to reports of segfaults etc. disabling LTO on Win32 for now. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ee2ddbc..8839145d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ option(ENABLE_FFMPEG "Enable ffmpeg A/V recording" ${FFMPEG_DEFAULT}) SET(LTO_DEFAULT ON) -IF((AMD64 AND WIN32 AND CMAKE_COMPILER_IS_GNUCXX) OR CMAKE_TOOLCHAIN_FILE MATCHES mxe) +IF(WIN32) SET(LTO_DEFAULT OFF) ENDIF()