On 10/4/21 5:07 PM, Eric Pouech wrote:
How about an easier solution: we could skip appending -gdwarf-2 if any of -gdwarf-[234] options are provided in CFLAGS.
yeah, way simpler ; may even work ;-)
two questions though:
- is there a need to support CROSSDEBUG=dwarf ? or not specifying
anything in CROSSDEBUG is fine
I'm not sure what you mean. It should be easy to keep it working and it doesn't need to be specified.
- when using CROSSDEBUG=pdb, I assume there's no need to the -gdwarf*
options at the same time?
Yes, pdb implies that we're using codeview symbols, so -gdwarf* options do not apply.
Jacek