digitalmars.D - Compiler switch: `-gdwarf-<version>` or `-gdwarf=<version>` ?
- Luhrel (7/18) Aug 06 2020 Hello,
- rikki cattermole (2/2) Aug 06 2020 Stick to dmd style.
- kinke (3/4) Aug 06 2020 I'd opt for the compact DMD-style too. LDC already has such a
Hello, Transcribing it here because not everyone may see it. From the PR https://github.com/dlang/dmd/pull/11509: wilzbach:me:Add `-gdwarf-<version>` compiler switchShouldn't the switch be -gdwarf=5 to be consistent with DMD's other flags? Then, it's also >possible for the user to list all available options.Maybe, but Clang and GCC have the -gdwarf-<version> switch, so I added the same for consistency between different compilers. What do you think ?wilzbach:I think sticking to the DMD style makes more sense here, because I am not sure a lot of people would like to have at least three more CLI flags. IIRC there has been a precedent with make flags. What do other people think?So, what's your point of view, guys ?
Aug 06 2020
Stick to dmd style. If ldc or gdc wish to offer another style they may.
Aug 06 2020
On Thursday, 6 August 2020 at 21:47:42 UTC, Luhrel wrote:So, what's your point of view, guys ?I'd opt for the compact DMD-style too. LDC already has such a flag (--dwarf-version=N).
Aug 06 2020