Commit 999d254c authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-26527 speedup appveyor build

Introduce -DFAST_BUILD parameter for a little faster build or test

if set,
- do not compile with /d2OptimizeHugeFunctions, this makes compilation
of bison output much slower on optimized build
- do not use runtime checks on debug build (RTC1). This slows down tests
considerably
parent 16131a7e
...@@ -116,7 +116,7 @@ ENDMACRO() ...@@ -116,7 +116,7 @@ ENDMACRO()
IF(MSVC) IF(MSVC)
IF(MSVC_VERSION LESS 1920) IF(MSVC_VERSION LESS 1920)
MESSAGE(FATAL_ERROR "Visual Studio q2019 or later is required") MESSAGE(FATAL_ERROR "Visual Studio 2019 or later is required")
ENDIF() ENDIF()
# Disable mingw based pkg-config found in Strawberry perl # Disable mingw based pkg-config found in Strawberry perl
SET(PKG_CONFIG_EXECUTABLE 0 CACHE INTERNAL "") SET(PKG_CONFIG_EXECUTABLE 0 CACHE INTERNAL "")
...@@ -254,12 +254,12 @@ IF(MSVC) ...@@ -254,12 +254,12 @@ IF(MSVC)
ENDFOREACH() ENDFOREACH()
ENDFOREACH() ENDFOREACH()
ENDIF() ENDIF()
IF(MSVC_VERSION LESS 1910)
# Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), IF(FAST_BUILD)
# removed in VS2017 STRING (REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
STRING(APPEND CMAKE_CXX_FLAGS " /wd4800")
ELSEIF (NOT CLANG_CL) ELSEIF (NOT CLANG_CL)
STRING(APPEND CMAKE_CXX_FLAGS " /d2OptimizeHugeFunctions") STRING(APPEND CMAKE_CXX_FLAGS_RELEASE " /d2OptimizeHugeFunctions")
STRING(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO " /d2OptimizeHugeFunctions")
ENDIF() ENDIF()
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment