tools: Use -Og for debug builds when available
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Feb 2021 14:22:44 +0000 (14:22 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Feb 2021 17:10:33 +0000 (17:10 +0000)
commit4abb20e321626c3d3cb0e922eac2048dc15d7c87
tree6fa69415b0fb9cedc9ee29f4834d63d203e792d5
parent2ff2adc61fcfa09118b76b4b64cbf8a78f7f2882
tools: Use -Og for debug builds when available

The recommended optimisation level for debugging is -Og, and is what tools
such as gdb prefer.  In practice, it equates to -01 with a few specific
optimisations turned off.

abi-dumper in particular wants the libraries it inspects in this form.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/Rules.mk