[commit: ghc] ghc-8.2: configure.ac: fix NCG support in --target= (0217621)

git at git.haskell.org git at git.haskell.org
Mon Apr 3 02:38:11 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/021762134b8f853395516ae3ef9e58b77289229d/ghc

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

commit 021762134b8f853395516ae3ef9e58b77289229d
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Sun Apr 2 19:38:23 2017 +0100

    configure.ac: fix NCG support in --target=
    
    Before this change attempt to build a crosscompiler
    on registerised platform (--host=x86_64-pc-linux-gnu)
    targeting UNREG platform failed:
        $ ./configure --target=ia64-unknown-linux-gnu
    
      utils/genapply/../../includes/stg/MachRegs.h:608:2: error:
         #error Cannot find platform to give register info for
    
    The change is to check --target= for NCG availability,
    not --host=.
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
    (cherry picked from commit cb18447c75e7673d5f57056fbdaa370d11e4c05e)


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

021762134b8f853395516ae3ef9e58b77289229d
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9ae97b8..2b1cc6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,7 +241,7 @@ AC_SUBST(SOLARIS_BROKEN_SHLD)
 
 dnl ** Do an unregisterised build?
 dnl --------------------------------------------------------------
-case "$HostArch" in
+case "$TargetArch" in
     i386|x86_64|powerpc|powerpc64|powerpc64le|arm)
         UnregisterisedDefault=NO
         ;;



More information about the ghc-commits mailing list