mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Add LLVM{CC,CXX} make variables, which specify the configured path the LLVM
capable compilers (which could be llvm-gcc or clang). llvm-svn: 96935
This commit is contained in:
parent
df02a93faa
commit
bfb3858de0
@ -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
|
||||
#--------------------------------------------------------------------
|
||||
|
@ -818,6 +818,10 @@
|
||||
<tt>mklib</tt> by the <tt>configure</tt> script and always located in the
|
||||
<dt><a name="LLVMAS"><tt>LLVMAS</tt></a><small>(defaulted)</small></dt>
|
||||
<dd>Specifies the path to the <tt>llvm-as</tt> tool.</dd>
|
||||
<dt><a name="LLVMCC"><tt>LLVMCC</tt></a></dt>
|
||||
<dd>Specifies the path to the LLVM capable compiler.</dd>
|
||||
<dt><a name="LLVMCXX"><tt>LLVMCXX</tt></a></dt>
|
||||
<dd>Specifies the path to the LLVM C++ capable compiler.</dd>
|
||||
<dt><a name="LLVMGCC"><tt>LLVMGCC</tt></a><small>(defaulted)</small></dt>
|
||||
<dd>Specifies the path to the LLVM version of the GCC 'C' Compiler</dd>
|
||||
<dt><a name="LLVMGXX"><tt>LLVMGXX</tt></a><small>(defaulted)</small></dt>
|
||||
|
Loading…
x
Reference in New Issue
Block a user