Comment on Making my debug build run 100x faster so that it is finally usableparentComments−senkora1yFor gcc: #pragma GCC optimize ("O0")For clang: #pragma clang optimize offFor MSVC: #pragma optimize("", off)Put one of these at the top of your source file.−saagarjha1yGenerally people want the opposite here: raising the optimization level for some code rather than turning it off for everything.
Comments
For gcc: #pragma GCC optimize ("O0")
For clang: #pragma clang optimize off
For MSVC: #pragma optimize("", off)
Put one of these at the top of your source file.
Generally people want the opposite here: raising the optimization level for some code rather than turning it off for everything.