From 797faed186a0a3c4e0e080923e96c1f58d63a672 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 23 Feb 2010 10:00:53 +0000 Subject: [PATCH] Add LLVM{CC,CXX} make variables, which specify the configured path the LLVM capable compilers (which could be llvm-gcc or clang). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96935 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 21 +++++++++++++++++++++ docs/MakefileGuide.html | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index 215df8628c9..649f8038bb6 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -494,6 +494,27 @@ LLVMLibDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/lib LLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/bin LLVMExmplDir:= $(LLVM_OBJ_ROOT)/$(BuildMode)/examples +#-------------------------------------------------------------------- +# LLVM Capable Compiler +#-------------------------------------------------------------------- + +ifeq ($(LLVMCC_OPTION),llvm-gcc) + LLVMCC := $(LLVMGCC) + LLVMCXX := $(LLVMGXX) +else + ifeq ($(LLVMCC_OPTION),clang) + ifneq ($(CLANGPATH),) + LLVMCC := $(CLANGPATH) + LLVMCXX := $(CLANGXXPATH) + else + ifeq ($(ENABLE_BUILT_CLANG),1) + LLVMCC := $(LLVMToolDir)/clang + LLVMCXX := $(LLVMToolDir)/clang++ + endif + endif + endif +endif + #-------------------------------------------------------------------- # Full Paths To Compiled Tools and Utilities #-------------------------------------------------------------------- diff --git a/docs/MakefileGuide.html b/docs/MakefileGuide.html index a9c0725f215..b1f8292831e 100644 --- a/docs/MakefileGuide.html +++ b/docs/MakefileGuide.html @@ -818,6 +818,10 @@ mklib by the configure script and always located in the
LLVMAS(defaulted)
Specifies the path to the llvm-as tool.
+
LLVMCC
+
Specifies the path to the LLVM capable compiler.
+
LLVMCXX
+
Specifies the path to the LLVM C++ capable compiler.
LLVMGCC(defaulted)
Specifies the path to the LLVM version of the GCC 'C' Compiler
LLVMGXX(defaulted)
-- 2.34.1