Merge pull request #1127 from kamalesh-babulal/make-unsupported-arch

kpatch-build/Makefile: Fail build on unsupported architectures
This commit is contained in:
Joe Lawrence 2020-07-21 16:17:25 -04:00 committed by GitHub
commit 37ce430773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ GCC_PLUGINS_DIR := $(shell gcc -print-file-name=plugin)
PLUGIN_CFLAGS := $(filter-out -Wconversion, $(CFLAGS))
PLUGIN_CFLAGS += -shared -I$(GCC_PLUGINS_DIR)/include \
-Igcc-plugins -fPIC -fno-rtti -O2 -Wall
else
$(error Unsupported architecture ${ARCH}, check https://github.com/dynup/kpatch/#supported-architectures)
endif