x86_64/common/Toolchain.defs: change optimization to -Os for CONFIG_DEBUG_FULLOPT
change optimization to -Os for CONFIG_DEBUG_FULLOPT to be compatible with other architectures and add an option to select CONFIG_DEBUG_CUSTOMOPT Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
parent
3a3341ba0e
commit
b3c4f3afc3
@ -22,10 +22,10 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|||||||
ARCHOPTIMIZATION = -g
|
ARCHOPTIMIZATION = -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
||||||
ARCHOPTIMIZATION += -O2 -fno-optimize-sibling-calls
|
ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL)
|
||||||
ARCHOPTIMIZATION += -fno-omit-frame-pointer -fno-crossjumping
|
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
|
||||||
ARCHOPTIMIZATION += -fno-delete-null-pointer-checks
|
ARCHOPTIMIZATION += -Os
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ARCHCPUFLAGS = -fPIC -fno-stack-protector -mno-red-zone -mrdrnd
|
ARCHCPUFLAGS = -fPIC -fno-stack-protector -mno-red-zone -mrdrnd
|
||||||
|
Loading…
Reference in New Issue
Block a user