Skip to content

Commit

Permalink
x86/build: Add check if compiler supports -fcx-limited-range
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Aug 11, 2023
1 parent a02b6a7 commit 7dbb937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export BITS

# More compiler optimizations
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
KBUILD_CFLAGS += -O3 -fexcess-precision=fast -freciprocal-math -fcx-limited-range
KBUILD_CFLAGS += -O3 -fexcess-precision=fast -freciprocal-math \
$(call cc-option,-fcx-limited-range)
KBUILD_RUSTFLAGS += -Copt-level=3
endif

Expand Down

0 comments on commit 7dbb937

Please sign in to comment.