From 70d77007ef74b066db7c52ef21902fefce3f24d5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 9 Apr 2011 19:53:16 +0000 Subject: [PATCH] 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 --- Makefile.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 5fc77a5e510..65ca542ca2b 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)