fix gcc version parameter ordering for gcc 8

This commit is contained in:
Vincent Sanders 2018-11-06 21:52:53 +00:00
parent c1e1df42e2
commit d5d1634675
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ else
endif
# compiler versioning to adjust warning flags
CC_VERSION := $(shell $(CC) -dumpversion -dumpfullversion)
CC_VERSION := $(shell $(CC) -dumpfullversion -dumpversion)
CC_MAJOR := $(word 1,$(subst ., ,$(CC_VERSION)))
CC_MINOR := $(word 2,$(subst ., ,$(CC_VERSION)))
define cc_ver_ge