digitalmars.D.learn - Is it possible? branching on debug info
- Guillaume Piolat (11/11) Oct 16 2022 I'd like to have:
- rikki cattermole (5/5) Oct 16 2022 There is: D_Optimized
I'd like to have:
version (D_DebugInfo)
{}
else
{
version = enableFeatureThatIsAnnoyingWhenDebugging;
}
Is there a way to know if debug info is being emitted when
compiling?
"debug is not cutting it because sometimes you really need to
debug with or without -debug, and with or without -O. I want -g.
Oct 16 2022
There is: D_Optimized https://dlang.org/spec/version.html#predefined-versions But nothing for debug info. I'm afraid I think you'll just have to use a version (unless you want to add it).
Oct 16 2022








rikki cattermole <rikki cattermole.co.nz>