In one of the Windows CI, we use cmake --build build --config RelWithDebInfo. This seems to suggest that the build type is RelWithDebInfo. However, for reasons we don't understand, that's not the case. In @ax3l's words,
Usually, VS Studio (and a few other generators) are multi-config generators. That means their "makefiles" are configured to be able to build Debug/Release/RelWithDebInfo/etc. all at the same time in the build phase. Generally, that means we have to pass --config ... to the build and install step and -DCMAKE_BUILD_TYPE cannot be passed to the configure step.
Anyway, if we make the changes in this PR (i.e., setting CMAKE_BUILD_TYPE), the build type does become RelWithDebInfo. Furthermore, the CI time went down from 1.5 hours to 6 minutes.
In one of the Windows CI, we use
cmake --build build --config RelWithDebInfo
. This seems to suggest that the build type isRelWithDebInfo
. However, for reasons we don't understand, that's not the case. In @ax3l's words,Anyway, if we make the changes in this PR (i.e., setting CMAKE_BUILD_TYPE), the build type does become
RelWithDebInfo
. Furthermore, the CI time went down from 1.5 hours to 6 minutes.Below is the diff of compiler flags used.