[commit: ghc] master: Distinguish between llvm-gcc/gcc in compiler name detection. (426a027)
Austin Seipp
mad.one at gmail.com
Mon Feb 11 05:04:57 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/426a027f1043a4fe47759806ea11164c63d810f3
>---------------------------------------------------------------
commit 426a027f1043a4fe47759806ea11164c63d810f3
Author: Austin Seipp <aseipp at pobox.com>
Date: Sun Feb 10 22:01:36 2013 -0600
Distinguish between llvm-gcc/gcc in compiler name detection.
It uglifies the code a tiny bit but it's nice to know exactly what
you're using.
Signed-off-by: Austin Seipp <aseipp at pobox.com>
>---------------------------------------------------------------
configure.ac | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index fa01e88..9409900 100644
--- a/configure.ac
+++ b/configure.ac
@@ -986,14 +986,18 @@ echo ["\
"]
fi
-if test "$CC_CLANG_BACKEND" = "1"; then
-CNAME="clang "
+if test "x$CC_LLVM_BACKEND" = "x1"; then
+ if test "x$CC_CLANG_BACKEND" = "x1"; then
+ CompilerName="clang "
+ else
+ CompilerName="llvm-gcc "
+ fi
else
-CNAME="gcc "
+ CompilerName="gcc "
fi
echo ["\
- Using $CNAME : $WhatGccIsCalled
+ Using $CompilerName : $WhatGccIsCalled
which is version : $GccVersion
Building a cross compiler : $CrossCompiling
More information about the ghc-commits
mailing list