Skip to content

Commit

Permalink
wsl2: Add more x86 optimisation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruvgera committed Sep 24, 2022
1 parent c3c213d commit c187e34
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 @@ -48,7 +48,8 @@ export BITS
#
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383
#
KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mno-avx2 \
-mno-avx512f -O3

# Intel CET isn't enabled in the kernel
KBUILD_CFLAGS += $(call cc-option,-fcf-protection=none)
Expand Down

0 comments on commit c187e34

Please sign in to comment.