Build: HOST_CXX -> USE_HOST_CXX
Allow HOST_CXX to be passed to make which will be the actual host C++ compiler used, such as 'make HOST_CXX=clang++'.
This commit is contained in:
parent
c6170070ed
commit
d61131945d
Notes:
sideshowbarker
2024-07-19 10:25:11 +09:00
Author: https://github.com/jcs Commit: https://github.com/SerenityOS/serenity/commit/d61131945d1 Pull-request: https://github.com/SerenityOS/serenity/pull/1002
6 changed files with 11 additions and 7 deletions
|
@ -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 @@
|
|||
HOST_CXX = 1
|
||||
USE_HOST_CXX = 1
|
||||
|
||||
PROGRAM = FormCompiler
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
HOST_CXX = 1
|
||||
USE_HOST_CXX = 1
|
||||
|
||||
PROGRAM = IPCCompiler
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
HOST_CXX = 1
|
||||
USE_HOST_CXX = 1
|
||||
|
||||
PROGRAM = Generate_CSS_PropertyID_cpp
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
HOST_CXX = 1
|
||||
USE_HOST_CXX = 1
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue