sanitizer builds do not use -Og
I've just noticed that the santizer builds are not using the -Og
optimisation level, which we use in the regular debug builds.
I know we used to do this, so I guess this is a change that came in most likely with the new cmake configuration if I had to guess.
You can see this by comparing the builds at
to
https://lhcb-nightlies.web.cern.ch/nightly/lhcb-master/1762/Gaudi/x86_64_v2-centos7-gcc11-dbg/build
I am not sure what optimization level the builds then default to, but it could be none, which means the sanitizer builds will be running a lot slower than they really need to.
I am not sure where in the new cmake configuration the compiler flags are set up, but it appears that dbg+asan
is not applying 'debug build flags and sanitizer flags', but the sanitizer flags only. For me, the intention behind dbg+asan
is 'take the debug build flags and add the sanitizer flags as well' so should be using the same flag as dbg
gets.
Where is the logic these days that handles these dbg+asan
builds kept these days, since it moved out of Gaudi itself I've kinda lost track ?
p.s. I hope this is the appropriate place to file the issue...