Skip to content

Commit

Permalink
XANMOD: Makefile: Turn off loop vectorization for GCC -O3 optimizatio…
Browse files Browse the repository at this point in the history
…n level

Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Jun 28, 2021
1 parent 34c89a0 commit 6e7b703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -749,6 +749,7 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
KBUILD_CFLAGS += -O2
else ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
KBUILD_CFLAGS += -O3
KBUILD_CFLAGS += $(call cc-option, -fno-tree-loop-vectorize)
else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
endif
Expand Down

0 comments on commit 6e7b703

Please sign in to comment.