[commit: ghc] ghc-8.2: distrib/configure: Canonicalize triples (e86ebd4)

git at git.haskell.org git at git.haskell.org
Thu Jul 20 16:50:10 UTC 2017


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

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

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

commit e86ebd4f35a3d55db8855a31fa8c9bd6971dcafc
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
    
    (cherry picked from commit 1480080b31e9f7cd47ca7b677455b3558b0da2bc)


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

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

diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 3d2d90d..27ae965 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