Is it GCC is it gcc, is it????

(cherry picked from commit 246e71a463)
This commit is contained in:
James R 2020-08-15 21:29:02 -07:00
parent db77fc5f00
commit 63ba605f52

View file

@ -48,7 +48,9 @@ endif
# Automatically set version flag, but not if one was manually set
ifeq (,$(filter GCC%,$(.VARIABLES)))
ifneq (,$(findstring gcc,$(shell $(CC) --version))) # if it's GCC
version:=$(shell $(CC) --version)
# check if this is in fact GCC
ifneq (,$(or $(findstring gcc,$(version)),$(findstring GCC,$(version))))
version:=$(shell $(CC) -dumpversion)
# Turn version into words of major, minor