aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-05 20:10:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-05 20:10:16 +0000
commita6cb9a1c4d76c05c1d35eb84503195e628c898a7 (patch)
tree169810f9b53a8ac8ea356b887c139eebdb014238 /Makefile.config.in
parent7b28955c4c879343a6ba1b335823334f0bb4c16d (diff)
downloadexternal_llvm-a6cb9a1c4d76c05c1d35eb84503195e628c898a7.zip
external_llvm-a6cb9a1c4d76c05c1d35eb84503195e628c898a7.tar.gz
external_llvm-a6cb9a1c4d76c05c1d35eb84503195e628c898a7.tar.bz2
Get LLVMGCCARCH right regardless of the llvm-gcc version being used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index 7ed58f7..2652db3 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -174,7 +174,11 @@ LIBS := @LIBS@
LLVMGCCDIR := @LLVMGCCDIR@
# Determine the target for which LLVM should generate code.
+ifeq (@LLVMGCC_MAJVERS@,3)
LLVMGCCARCH := @target@/3.4-llvm
+else
+LLVMGCCARCH := @target@/@LLVMGCC_VERSION@
+endif
# Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
LLVMGCC := @LLVMGCC@