Skip to content
Snippets Groups Projects
Commit da9d760e authored by Syrone Wong's avatar Syrone Wong Committed by Felix Fietkau
Browse files

rules.mk: replace iremap when using GCC 8


The original -iremap is replaced by -fmacro-prefix-map in GCC 8

Signed-off-by: default avatarSyrone Wong <wong.syrone@gmail.com>
parent 139f99c0
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,10 @@ endif
ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
iremap = -iremap$(1):$(2)
# just overwrite iremap for GCC 8.1 and higher to keep backward compatibility
ifeq ($(CONFIG_GCC_VERSION_8),y)
iremap = -fmacro-prefix-map=$(1)=$(2)
endif
endif
PACKAGE_DIR:=$(BIN_DIR)/packages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment