mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
Merge #19137
19137: toolchain/gnu.inc.mk: don't check version if CC is not installed r=kaspar030 a=miri64 Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
This commit is contained in:
commit
9d8fdd3f34
@ -23,7 +23,7 @@ endif
|
||||
_OBJDUMP := $(or $(shell command -v $(PREFIX)objdump || command -v gobjdump),objdump)
|
||||
OBJDUMP ?= $(_OBJDUMP)
|
||||
|
||||
GCC_VERSION := $(shell $(CC) -dumpversion | cut -d . -f 1)
|
||||
GCC_VERSION := $(shell command -v $(CC) > /dev/null && $(CC) -dumpversion | cut -d . -f 1)
|
||||
|
||||
# -fmacro-prefix-map requires GCC 8
|
||||
ifneq (8, $(firstword $(shell echo 8 $(GCC_VERSION) | tr ' ' '\n' | sort -n)))
|
||||
|
Loading…
Reference in New Issue
Block a user