mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-31 16:37:07 +00:00
HV: Use the CFLAGS to control the optimization option
Now two flags can be used to control the optimizatin option. So unify them and only one flag can be used to config the optimization Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Zheng Gen <gen.zheng@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -28,7 +28,7 @@ CFLAGS += -fshort-wchar -ffreestanding
|
||||
CFLAGS += -m64
|
||||
CFLAGS += -mno-red-zone
|
||||
CFLAGS += -static -nostdinc -nostdlib -fno-common
|
||||
CFLAGS += -O2 -D_FORTIFY_SOURCE=2
|
||||
CFLAGS += -O0 -D_FORTIFY_SOURCE=2
|
||||
CFLAGS += -Wformat -Wformat-security
|
||||
|
||||
ifdef STACK_PROTECTOR
|
||||
@@ -50,7 +50,7 @@ LDFLAGS += -Wl,--gc-sections -static -nostartfiles -nostdlib
|
||||
LDFLAGS += -Wl,-n,-z,max-page-size=0x1000
|
||||
LDFLAGS += -Wl,-z,noexecstack
|
||||
|
||||
ARCH_CFLAGS += -gdwarf-2 -O0
|
||||
ARCH_CFLAGS += -gdwarf-2
|
||||
ARCH_ASFLAGS += -gdwarf-2 -DASSEMBLER=1
|
||||
ARCH_ARFLAGS +=
|
||||
ARCH_LDFLAGS +=
|
||||
|
Reference in New Issue
Block a user