Thread overview
Compiler switch: `-gdwarf-<version>` or `-gdwarf=<version>` ?
Aug 06, 2020
Luhrel
Aug 06, 2020
rikki cattermole
Aug 06, 2020
kinke
August 06, 2020
Hello,

Transcribing it here because not everyone may see it.
From the PR https://github.com/dlang/dmd/pull/11509:

wilzbach:
>> Add `-gdwarf-<version>` compiler switch
>Shouldn'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.

me:
> 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 ?
August 07, 2020
Stick to dmd style.

If ldc or gdc wish to offer another style they may.
August 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).