Makefile: Use "clang++" for building C++ with clang.

git-svn-id: https://svn.eduke32.com/eduke32@6088 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-03-22 15:46:04 +00:00
parent 029facac6f
commit ed75d4086c

View file

@ -78,12 +78,13 @@ ifeq ($(findstring clang,$(CLANG_POTENTIAL_VERSION)),clang)
endif
ifneq (0,$(CLANG))
CLANGXXNAME:=$(subst clang,clang++,$(CLANGNAME))
override CC=$(CLANGNAME) -x c
override CXX=$(CLANGNAME) -x c++
override CXX=$(CLANGXXNAME) -x c++
override COBJC=$(CLANGNAME) -x objective-c
override COBJCXX=$(CLANGNAME) -x objective-c++
override COBJCXX=$(CLANGXXNAME) -x objective-c++
override L_CC=$(CLANGNAME)
override L_CXX=$(CLANGNAME)
override L_CXX=$(CLANGXXNAME)
endif
# GCC version, for conditional selection of flags.