Allow HOST_CXX to be passed to make which will be the actual host C++ compiler used, such as 'make HOST_CXX=clang++'.
@@ -17,7 +17,7 @@ APPS = ${SRCS:.cpp=}
EXTRA_CLEAN = $(APPS) *.o
-HOST_CXX = 1
+USE_HOST_CXX = 1
include ../../Makefile.common
@@ -1,4 +1,4 @@
PROGRAM = FormCompiler
PROGRAM = IPCCompiler
PROGRAM = Generate_CSS_PropertyID_cpp
PROGRAM = Generate_CSS_PropertyID_h
@@ -22,12 +22,16 @@ INCLUDE_FLAGS += \
VERBOSE = 0
-ifneq ($(HOST_CXX),)
+ifneq ($(USE_HOST_CXX),)
ifeq '' '$(findstring clang++,$(CXX))'
C_WARNING_FLAGS += -Wno-unknown-warning-option
CXX_WARNING_FLAGS += -Wno-unknown-warning-option
endif
- CXX = $(PRE_CXX) g++
+ ifeq ($(HOST_CXX),)
+ CXX = $(PRE_CXX) g++
+ else
+ CXX = $(HOST_CXX)
+ endif
AS = as
LINK = ld
OBJ_SUFFIX ?= .host