Skip to content

Commit

Permalink
Build: HOST_CXX -> USE_HOST_CXX
Browse files Browse the repository at this point in the history
Allow HOST_CXX to be passed to make which will be the actual host
C++ compiler used, such as 'make HOST_CXX=clang++'.
  • Loading branch information
jcs authored and awesomekling committed Jan 2, 2020
1 parent c617007 commit d611319
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AK/Tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ APPS = ${SRCS:.cpp=}

EXTRA_CLEAN = $(APPS) *.o

HOST_CXX = 1
USE_HOST_CXX = 1

include ../../Makefile.common

Expand Down
2 changes: 1 addition & 1 deletion DevTools/FormCompiler/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HOST_CXX = 1
USE_HOST_CXX = 1

PROGRAM = FormCompiler

Expand Down
2 changes: 1 addition & 1 deletion DevTools/IPCCompiler/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HOST_CXX = 1
USE_HOST_CXX = 1

PROGRAM = IPCCompiler

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HOST_CXX = 1
USE_HOST_CXX = 1

PROGRAM = Generate_CSS_PropertyID_cpp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HOST_CXX = 1
USE_HOST_CXX = 1

PROGRAM = Generate_CSS_PropertyID_h

Expand Down
8 changes: 6 additions & 2 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d611319

Please sign in to comment.