message: Speed up unit tests on Windows
diff: @@ -98,7 +98,19 @@ if(MSVC)
  if(${flag_var} MATCHES "/MD")
  string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
  endif()
  +
  + # Disable runtime stack bound checks, because these slow down unit tests
  + # disproportionately.
  + if(${flag_var} MATCHES "/RTC")
  + string(REGEX REPLACE "/RTC(su|[1su])" "" ${flag_var} "${${flag_var}}")
  + endif()
  endforeach()
  +
  + # Let the compiler optimize debug builds ever so slightly.
  + # /Ob1: This allows the compiler to inline functions marked __inline.
  + # /Oi: This enables (faster) intrinsic functions.
  + string(REPLACE "/Ob0" "/Ob1" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
  + string(CONCAT CMAKE_CXX_FLAGS_DEBUG "/Oi " "${CMAKE_CXX_FLAGS_DEBUG}")
  endif()
  endif()
  