diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-04 20:33:01 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-09-06 13:55:14 +0200 |
commit | 999d254cf289ba122d40f3e2590bf57561d47d21 (patch) | |
tree | e7072e7f7c2af46811123e29e0fce983299ea95c | |
parent | 16131a7e46bb6c120b4e0ddb27b03c0bb7164928 (diff) | |
download | mariadb-git-999d254cf289ba122d40f3e2590bf57561d47d21.tar.gz |
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
-rw-r--r-- | cmake/os/Windows.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index 232560ff7b1..d9a0dfba46a 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -116,7 +116,7 @@ ENDMACRO() IF(MSVC) 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() # Disable mingw based pkg-config found in Strawberry perl SET(PKG_CONFIG_EXECUTABLE 0 CACHE INTERNAL "") @@ -254,12 +254,12 @@ IF(MSVC) ENDFOREACH() ENDFOREACH() ENDIF() - IF(MSVC_VERSION LESS 1910) - # Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), - # removed in VS2017 - STRING(APPEND CMAKE_CXX_FLAGS " /wd4800") + + IF(FAST_BUILD) + STRING (REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 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() |