Skip to content
Snippets Groups Projects
Unverified Commit e887dda8 authored by Nicolas Tsiftes's avatar Nicolas Tsiftes Committed by GitHub
Browse files

Merge pull request #1776 from pjonsson/gcc-dumpfullversion

Fix version detection for recent gcc
parents e25454c1 e44c887f
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,9 @@
# GCC specific definitions and actions
#
GCC_MAJOR_VERSION := $(shell $(CC) -dumpversion | cut -d "." -f 1)
GCC_MINOR_VERSION := $(shell $(CC) -dumpversion | cut -d "." -f 2)
GCC_VERSION := $(shell $(CC) -dumpfullversion -dumpversion)
GCC_MAJOR_VERSION := $(word 1,$(subst ., ,$(GCC_VERSION)))
GCC_MINOR_VERSION := $(word 2,$(subst ., ,$(GCC_VERSION)))
# Warn if using version 6.3.x of arm-none-eabi-gcc
ifeq ("$(CC)","arm-none-eabi-gcc")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment