mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
Is it GCC is it gcc, is it????
(cherry picked from commit ef2bff6383b16385f9874e1c9c6b66c9df794f5b)
This commit is contained in:
parent
655c694bbc
commit
8c7f9f85fe
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ 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
|
version:=$(shell $(CC) --version)
|
||||||
|
# check if this is in fact GCC
|
||||||
|
ifneq (,$(or $(findstring gcc,$(version)),$(findstring GCC,$(version))))
|
||||||
version:=$(shell $(CC) -dumpversion)
|
version:=$(shell $(CC) -dumpversion)
|
||||||
|
|
||||||
# Turn version into words of major, minor
|
# Turn version into words of major, minor
|
||||||
|
|
Loading…
Reference in a new issue