Conditionalize CC / CXX / CPP to permit using other gcc versions.
This commit is contained in:
parent
b37d7e26fe
commit
211d41948a
1 changed files with 6 additions and 6 deletions
|
@ -204,9 +204,9 @@ endif
|
|||
|
||||
CFG_INFO := $(info cfg: using $(CFG_C_COMPILER))
|
||||
ifeq ($(CFG_C_COMPILER),clang)
|
||||
CC=clang
|
||||
CXX=clang++
|
||||
CPP=cpp
|
||||
CC ?= clang
|
||||
CXX ?= clang++
|
||||
CPP ?= cpp
|
||||
CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g
|
||||
CFG_GCCISH_LINK_FLAGS += -g
|
||||
CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \
|
||||
|
@ -229,9 +229,9 @@ ifeq ($(CFG_C_COMPILER),clang)
|
|||
$(eval $(call CFG_MAKE_CC,$(target))))
|
||||
else
|
||||
ifeq ($(CFG_C_COMPILER),gcc)
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
CPP=cpp
|
||||
CC ?= gcc
|
||||
CXX ?= g++
|
||||
CPP ?= cpp
|
||||
CFG_GCCISH_CFLAGS += -Wall -Werror -fno-rtti -g
|
||||
CFG_GCCISH_LINK_FLAGS += -g
|
||||
CFG_DEPEND_C = $(CFG_GCCISH_CROSS)$(CXX) $(CFG_GCCISH_CFLAGS) -MT "$(1)" \
|
||||
|
|
Loading…
Add table
Reference in a new issue