It's not always GCC, but it probably is gcc (I hope)

This commit is contained in:
James R 2020-07-11 12:45:35 -07:00
parent f336b1e979
commit 4e1d54c332

View file

@ -47,7 +47,7 @@ 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
ifneq (,$(findstring gcc,$(shell $(CC) --version))) # if it's GCC
version:=$(shell $(CC) -dumpversion)
# Turn version into words of major, minor