Skip to content

Commit

Permalink
Conditionalize CC / CXX / CPP to permit using other gcc versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Mar 28, 2012
1 parent b37d7e2 commit 211d419
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mk/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)" \
Expand All @@ -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)" \
Expand Down

0 comments on commit 211d419

Please sign in to comment.