Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : cross-compiler-alienless

http://hackage.haskell.org/trac/ghc/changeset/92cc0ab187e41211ea42c708e02e2038de805996

>---------------------------------------------------------------

commit 92cc0ab187e41211ea42c708e02e2038de805996
Author: Gabor Greif <[email protected]>
Date:   Wed Aug 29 14:32:04 2012 +0200

    do not query GHC for the <C compiler> when a cross-compiler is being built

>---------------------------------------------------------------

 configure.ac |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4b94580..69135a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -459,12 +459,13 @@ CC="$WhatGccIsCalled"
 export CC
 
 if test x"$TargetPlatform" = x"$HostPlatform"; then
+  # query GHC for the C compiler
   BOOTSTRAPPING_GHC_INFO_FIELD([CC_STAGE1],[C compiler command],['$(CC)'])
 else
   if test x"$TargetCC" != x; then
-    BOOTSTRAPPING_GHC_INFO_FIELD([CC_STAGE1],[target C compiler 
command],[$TargetCC])
+    CC_STAGE1=$TargetCC
   else
-    BOOTSTRAPPING_GHC_INFO_FIELD([CC_STAGE1],[target C compiler 
command],['$(CC)'])
+    CC_STAGE1='$(CC)'
     TargetCC="$WhatGccIsCalled"
   fi
 fi



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to