Skip to content

Commit

Permalink
XANMOD: x86/build: Add more x86 code optimization flags
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Jan 8, 2024
1 parent 045ead8 commit 626d210
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ export REALMODE_CFLAGS
# e.g.: obj-y += foo_$(BITS).o
export BITS

# More compiler optimizations
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
KBUILD_CFLAGS += -O3
KBUILD_RUSTFLAGS += -Copt-level=3
endif

#
# Prevent GCC from generating any FP code by mistake.
#
Expand Down

0 comments on commit 626d210

Please sign in to comment.