summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-09 19:53:16 +0000
committerChris Lattner <sabre@nondot.org>2011-04-09 19:53:16 +0000
commit70d77007ef74b066db7c52ef21902fefce3f24d5 (patch)
tree0a96798bccec5e2c3319b09f11a92c1bfd248fb1 /Makefile.rules
parent15f895179953b258e4ca20860d0d58f25f3a3edb (diff)
downloadllvm-70d77007ef74b066db7c52ef21902fefce3f24d5.tar.gz
llvm-70d77007ef74b066db7c52ef21902fefce3f24d5.tar.bz2
llvm-70d77007ef74b066db7c52ef21902fefce3f24d5.tar.xz
make stuff work when LLVMCC_OPTION is something like installed-clang, not just clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 5fc77a5e51..65ca542ca2 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -444,11 +444,11 @@ endif
# LLVM Capable Compiler
#--------------------------------------------------------------------
-ifeq ($(LLVMCC_OPTION),llvm-gcc)
+ifneq ($(findstring llvm-gcc,$(LLVMCC_OPTION)),)
LLVMCC := $(LLVMGCC)
LLVMCXX := $(LLVMGXX)
else
- ifeq ($(LLVMCC_OPTION),clang)
+ ifneq ($(findstring clang,$(LLVMCC_OPTION)),)
ifneq ($(CLANGPATH),)
LLVMCC := $(CLANGPATH)
LLVMCXX := $(CLANGXXPATH)