Skip to content

Commit

Permalink
Add -O2 to CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Nov 5, 2021
1 parent 07173a9 commit a646c8e
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 a646c8e

Please sign in to comment.