Skip to content

Commit 9efbf12

Browse files
yakuizhaojren1
authored andcommitted
HV: Enable the -O2 option for HV
Now the -O0 option is used. In such case the code is not optimized. 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>
1 parent 263fafe commit 9efbf12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hypervisor/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CFLAGS += -fshort-wchar -ffreestanding
2828
CFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387
2929
CFLAGS += -mno-red-zone
3030
CFLAGS += -static -nostdinc -nostdlib -fno-common
31-
CFLAGS += -O0 -D_FORTIFY_SOURCE=2
31+
CFLAGS += -O2 -D_FORTIFY_SOURCE=2
3232
CFLAGS += -Wformat -Wformat-security
3333

3434
ifdef STACK_PROTECTOR

hypervisor/bsp/uefi/efi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ endif
6868

6969
CFLAGS=-I. -I.. -I$(INCDIR)/efi -I$(INCDIR)/efi/$(ARCH) \
7070
-DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding \
71-
-Wall -I../fs/ -D$(ARCH) -O0
71+
-Wall -I../fs/ -D$(ARCH) -O2
7272

7373
CFLAGS += -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387
7474

0 commit comments

Comments
 (0)