Try the previous commit in a different way so that make CC=gcc CXX=g++ COBJC="clang -x -objective-x" COBJCXX="clang++ -x objective-c++" does not require the non-obvious CLANG=0. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@6430 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-08-12 02:33:27 +00:00
parent f77cfe8aad
commit 82eedfb6fe

View file

@ -174,6 +174,12 @@ endif
CC := $(CROSS)gcc$(CROSS_SUFFIX)
CXX := $(CROSS)g++$(CROSS_SUFFIX)
ifeq ($(PLATFORM),DARWIN)
CC := $(CROSS)clang$(CROSS_SUFFIX)
CXX := $(CROSS)clang++$(CROSS_SUFFIX)
endif
COBJC := $(CC) -x objective-c
COBJCXX := $(CXX) -x objective-c++
L_CC := $(CC)
@ -206,9 +212,6 @@ ifeq ($(PLATFORM),$(filter $(PLATFORM),DINGOO GCW))
endif
CLANG := 0
ifeq ($(PLATFORM),DARWIN)
CLANG := 1
endif
ifeq ($(findstring clang,$(CC) $(MAKECMDGOALS)),clang)
override CLANG := 1
CLANGNAME := $(CC)