diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 408bb5532d1b..94df0868804b 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -298,6 +298,10 @@ vdso_install: archprepare: checkbin checkbin: +ifndef CONFIG_CC_HAS_ASM_GOTO + @echo Compiler lacks asm-goto support. + @exit 1 +endif ifdef CONFIG_RETPOLINE ifeq ($(RETPOLINE_CFLAGS),) @echo "You are building kernel with non-retpoline compiler." >&2