Skip to content

Commit

Permalink
Add -O2 to CFLAGS (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand authored Nov 5, 2021
1 parent d16681e commit 2fadb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fadb49

Please sign in to comment.