mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Use OVERRIDE_CC if defined to determine GCC_VERSION. (nw)
Fixes some cross-compilation issues and most likely edge case using OVERRIDE_CC.
This commit is contained in:
parent
6eb3ffebae
commit
764f04c317
4
makefile
4
makefile
@ -971,7 +971,11 @@ FASTBUILD_PARAMS += $(FASTBUILD_TARGET)-x32
|
||||
endif
|
||||
endif
|
||||
else
|
||||
ifdef OVERRIDE_CC
|
||||
GCC_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(OVERRIDE_CC)) -dumpversion 2> /dev/null)
|
||||
else
|
||||
GCC_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) -dumpversion 2> /dev/null)
|
||||
endif
|
||||
ifneq ($(OS),solaris)
|
||||
CLANG_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) --version 2> /dev/null | head -n 1 | grep -e 'version [0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' -o | grep -e '[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' -o | tail -n 1)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user