[commit: ghc] master: distrib/configure: Canonicalize triples (1480080)

git at git.haskell.org git at git.haskell.org
Thu Jul 20 16:05:15 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1480080b31e9f7cd47ca7b677455b3558b0da2bc/ghc

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

commit 1480080b31e9f7cd47ca7b677455b3558b0da2bc
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Thu Jul 20 11:34:00 2017 -0400

    distrib/configure: Canonicalize triples
    
    Previously we failed to do this, which meant that the bindist's
    configure would fail when passed --target (as you may need to do when
    installing an armv7 bindist on an aarch64 machine, for instance).
    
    Reviewers: hvr, erikd, austin
    
    Reviewed By: hvr
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #13934
    
    Differential Revision: https://phabricator.haskell.org/D3761


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

1480080b31e9f7cd47ca7b677455b3558b0da2bc
 distrib/configure.ac.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index a15b4a5..314bb3a 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -13,6 +13,13 @@ dnl--------------------------------------------------------------------
 FP_GMP
 
 bootstrap_target=@TargetPlatform@
+
+# We have to run these unconditionally as FPTOOLS_SET_PLATFORM_VARS wants the
+# values it computes.
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
 FPTOOLS_SET_PLATFORM_VARS
 
 # Requires FPTOOLS_SET_PLATFORM_VARS to be run first.



More information about the ghc-commits mailing list