From 879c9ddce7fd89f06f538e380016b408e4f2a2f4 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 9 Sep 2019 19:57:25 +0200 Subject: [PATCH] MDEV-20542 Windows enable/d2OptimizeHugeFunctions --- cmake/os/Windows.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index ae0beeae5c549..ca6d13e1c1b6d 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -164,6 +164,8 @@ IF(MSVC) # Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), # removed in VS2017 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800") + ELSE() + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /d2OptimizeHugeFunctions") ENDIF() ENDIF()