www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Compiler switch: `-gdwarf-<version>` or `-gdwarf=<version>` ?

reply Luhrel <lucien.perregaux gmail.com> writes:
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 ?
Aug 06 2020
next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
Stick to dmd style.

If ldc or gdc wish to offer another style they may.
Aug 06 2020
prev sibling parent kinke <noone nowhere.com> writes:
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