mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
rk: force enable asm goto on android gcc
It seems than android gcc can't pass gcc-goto.sh check, but asm goto work. So let's active it. Change-Id: I75310af8cf3746a5c110daa564e96eeb1d7f1070 Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
parent
332da300ea
commit
b16fac932c
5
Makefile
5
Makefile
|
|
@ -786,6 +786,11 @@ KBUILD_ARFLAGS := $(call ar-option,D)
|
|||
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y)
|
||||
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
else ifneq ($(findstring aarch64-linux-android, $(CROSS_COMPILE)),)
|
||||
# It seems than android gcc can't pass gcc-goto.sh check, but asm goto work.
|
||||
# So let's active it.
|
||||
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
||||
endif
|
||||
|
||||
include scripts/Makefile.kasan
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user