mirror of
https://github.com/holub/mame
synced 2025-10-05 00:38:58 +03:00
fix clang version detection in ubuntu
This commit is contained in:
parent
ad7a3a160a
commit
505760478a
2
makefile
2
makefile
@ -691,7 +691,7 @@ CHECK_CLANG :=
|
|||||||
else
|
else
|
||||||
GCC_VERSION := $(shell $(subst @,,$(CC)) -dumpversion 2> /dev/null)
|
GCC_VERSION := $(shell $(subst @,,$(CC)) -dumpversion 2> /dev/null)
|
||||||
ifneq ($(OS),solaris)
|
ifneq ($(OS),solaris)
|
||||||
CLANG_VERSION := $(shell clang --version 2> /dev/null | grep 'LLVM [0-9]\.[0-9]' -o | grep '[0-9]\.[0-9]' -o | head -n 1)
|
CLANG_VERSION := $(shell clang --version 2> /dev/null | grep '[0-9]\.[0-9]' -o | head -n 1)
|
||||||
endif
|
endif
|
||||||
PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python)
|
PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python)
|
||||||
CHECK_CLANG := $(shell gcc --version 2> /dev/null | grep 'clang' | head -n 1)
|
CHECK_CLANG := $(shell gcc --version 2> /dev/null | grep 'clang' | head -n 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user