[edk2-devel] GCC49 DEBUG AARCH64 and ARM builds use -O0

Rebecca Cran rebecca at nuviainc.com
Mon Apr 12 15:10:06 UTC 2021


I noticed the GCC49 (and GCC48) AARCH64 and ARM DEBUG builds use -O0, 
unlike IA32 and X64 platforms which build with -Os.

e.g. from 
https://github.com/tianocore/edk2/blob/master/BaseTools/Conf/tools_def.template 
:

DEBUG_GCC49_AARCH64_CC_FLAGS     = DEF(GCC49_AARCH64_CC_FLAGS) -O0

Is that deliberate, or should it be like X64 where DEBUG builds are 
optimized and NOOPT is used when unoptimized binaries are needed?

-- 
Rebecca Cran


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#73964): https://edk2.groups.io/g/devel/message/73964
Mute This Topic: https://groups.io/mt/82040511/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list