mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-10 12:32:45 +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:
parent
7de42842d5
commit
42bbc22ef2
@ -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 +=
|
||||
|
@ -68,7 +68,7 @@ endif
|
||||
|
||||
CFLAGS=-I. -I.. -I$(INCDIR)/efi -I$(INCDIR)/efi/$(ARCH) \
|
||||
-DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \
|
||||
-Wall -I../fs/ -D$(ARCH)
|
||||
-Wall -I../fs/ -D$(ARCH) -O0
|
||||
|
||||
ifeq ($(ARCH),ia32)
|
||||
ifeq ($(HOST),x86_64)
|
||||
|
Loading…
Reference in New Issue
Block a user