Merge branch 'gcc-detect-case' into 'master'

I guess GCC isn't always "GCC"

See merge request STJr/SRB2!1057
This commit is contained in:
James R 2020-07-11 20:42:19 -04:00
commit 2ce30d2dd5

View file

@ -47,7 +47,7 @@ endif
# Automatically set version flag, but not if one was manually set # Automatically set version flag, but not if one was manually set
ifeq (,$(filter GCC%,$(.VARIABLES))) 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) version:=$(shell $(CC) -dumpversion)
# Turn version into words of major, minor # Turn version into words of major, minor