From a646c8ec9e7f8351f45d8b4e6d50fd4387d06e2a Mon Sep 17 00:00:00 2001 From: William Durand Date: Thu, 4 Nov 2021 22:58:01 +0100 Subject: [PATCH] Add -O2 to CFLAGS --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fdb34e622..df79cc274 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ WERRORS += -Werror=switch CFLAGS += -DKERNEL_NAME=\"$(OS_NAME)\" CFLAGS += -DGIT_HASH=\"$(GIT_HASH)\" CFLAGS += -DLOGS_WITH_COLORS -CFLAGS += -std=c11 -ffreestanding -nostdinc -nostdlib -fno-builtin +CFLAGS += -O2 -std=c11 -ffreestanding -nostdinc -nostdlib -fno-builtin # We need to have -fno-omit-frame-pointer or the kernel stack backtrace won't # get the stack. CFLAGS += --target=x86_64 -fno-omit-frame-pointer -fstack-protector