]> xenbits.xensource.com Git - xen.git/commit
tools: detect appropriate debug optimization level
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 13 Mar 2018 04:06:51 +0000 (23:06 -0500)
committerWei Liu <wei.liu2@citrix.com>
Tue, 13 Mar 2018 15:53:35 +0000 (15:53 +0000)
commitb43501451733193b265de30fd79a764363a2a473
tree77139edb28b59829e148edf816a6ed3b91a8b229
parenteef83fd2af0d4c78afec34c199c977fc97d8a0b3
tools: detect appropriate debug optimization level

When building debug use -Og as the optimization level if its available,
otherwise retain the use of -O0. -Og has been added by GCC to enable all
optimizations that to not affect debugging while retaining full
debugability.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/Rules.mk