digitalmars.D.bugs - [Issue 23423] New: Feature Request: version(D_DebugInfo)
- d-bugmail puremagic.com (25/25) Oct 17 2022 https://issues.dlang.org/show_bug.cgi?id=23423
https://issues.dlang.org/show_bug.cgi?id=23423 Issue ID: 23423 Summary: Feature Request: version(D_DebugInfo) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: aliloko gmail.com Hello. 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 would want -g. --
Oct 17 2022