https://bugs.kde.org/show_bug.cgi?id=360249

--- Comment #4 from Hohyeis <[email protected]> ---
Surprise: CXXFLAGS does not override all compiler parameters, including the
optimization.

cmake -DCMAKE_CXX_FLAGS=-O0 ../trojita
make -j1 CXXFLAGS=-O0 VERBOSE=1

There is a second '-O2' which overrides the '-O0'.
There are compiler parameters which come after the CXXFLAGS.

>This bugreport says that you expected no optimizations to be active when doing 
>the debug build type.

I do expect that when I do a debug build type no optimization is done, but I
don't see that I wrote that anywhere.
This report proposes that CMAKE_BUILD_TYPE=None would not perform any
optimization.
Earlier in this report, I proposed optimizing the debug builds with '-Og'.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to