]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
README.md: recommend -Og instead of -O0
authorKefu Chai <kchai@redhat.com>
Fri, 16 Jul 2021 02:32:33 +0000 (10:32 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 20 Jul 2021 06:23:59 +0000 (14:23 +0800)
commita5d38f0b14f9f9d7cd13f8a0df5bbef9a5802a02
tree9d4e88f7692b225f29728ff70da00fc93285bcea
parent40148fc24819642a1f087a5d3a03f679fe86ed33
README.md: recommend -Og instead of -O0

per https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

> -Og
>  Optimize debugging experience. -Og should be the optimization level of
>  choice for the standard edit-compile-debug cycle, offering a reasonable
>  level of optimization while maintaining fast compilation and a good
>  debugging experience. It is a better choice than -O0 for producing
>  debuggable code because some compiler passes that collect debug
>  information are disabled at -O0.

so instead of using -O0, for better developer experience, -Og is
recommended.

Signed-off-by: Kefu Chai <kchai@redhat.com>
README.md