Fix compiler version comparison test

This commit is contained in:
Vincent Sanders 2018-09-07 14:26:12 +01:00
parent c3d3023e4a
commit 22fd851e14
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ CC_VERSION := $(shell $(CC) -dumpversion)
CC_MAJOR := $(word 1,$(subst ., ,$(CC_VERSION)))
CC_MINOR := $(word 2,$(subst ., ,$(CC_VERSION)))
define cc_ver_ge
$(shell expr $(CC_MAJOR) \>= $(1) \& $(CC_MINOR) \>= $(2))
$(shell expr $(CC_MAJOR) \> $(1) \| \( $(CC_MAJOR) = $(1) \& $(CC_MINOR) \>= $(2) \) )
endef
# CCACHE