llvm.org GIT mirror llvm / 797faed
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 Daniel Dunbar 9 years ago
2 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
492492 LLVMLibDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/lib
493493 LLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/bin
494494 LLVMExmplDir:= $(LLVM_OBJ_ROOT)/$(BuildMode)/examples
495
496 #--------------------------------------------------------------------
497 # LLVM Capable Compiler
498 #--------------------------------------------------------------------
499
500 ifeq ($(LLVMCC_OPTION),llvm-gcc)
501 LLVMCC := $(LLVMGCC)
502 LLVMCXX := $(LLVMGXX)
503 else
504 ifeq ($(LLVMCC_OPTION),clang)
505 ifneq ($(CLANGPATH),)
506 LLVMCC := $(CLANGPATH)
507 LLVMCXX := $(CLANGXXPATH)
508 else
509 ifeq ($(ENABLE_BUILT_CLANG),1)
510 LLVMCC := $(LLVMToolDir)/clang
511 LLVMCXX := $(LLVMToolDir)/clang++
512 endif
513 endif
514 endif
515 endif
495516
496517 #--------------------------------------------------------------------
497518 # Full Paths To Compiled Tools and Utilities
817817 mklib by the configure script and always located in the
818818
LLVMAS(defaulted)
819819
Specifies the path to the llvm-as tool.
820
LLVMCC
821
Specifies the path to the LLVM capable compiler.
822
LLVMCXX
823
Specifies the path to the LLVM C++ capable compiler.
820824
LLVMGCC(defaulted)
821825
Specifies the path to the LLVM version of the GCC 'C' Compiler
822826
LLVMGXX(defaulted)