mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Makefile: support for Mingw64 toolchain
This commit is contained in:
parent
01911e4d37
commit
3c3c59928d
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ ifeq (,$(filter GCC%,$(.VARIABLES)))
|
||||||
version:=$(shell $(CC) --version)
|
version:=$(shell $(CC) --version)
|
||||||
# check if this is in fact GCC
|
# check if this is in fact GCC
|
||||||
ifneq (,$(or $(findstring gcc,$(version)),$(findstring GCC,$(version))))
|
ifneq (,$(or $(findstring gcc,$(version)),$(findstring GCC,$(version))))
|
||||||
version:=$(shell $(CC) -dumpversion)
|
shellversion:=$(shell $(CC) -dumpversion)
|
||||||
|
|
||||||
|
# Try to remove "-win32"
|
||||||
|
version:=$(subst -win32,.0,$(shellversion))
|
||||||
|
|
||||||
# Turn version into words of major, minor
|
# Turn version into words of major, minor
|
||||||
v:=$(subst ., ,$(version))
|
v:=$(subst ., ,$(version))
|
||||||
|
|
Loading…
Reference in a new issue