Commit 0cc3931b authored by Sergei Trofimovich's avatar Sergei Trofimovich Committed by Sergei Trofimovich

configure.ac: fix --host= handling

The following command fails as:
    $ ./configure --prefix=/usr \
        --build=x86_64-pc-linux-gnu \
        --host=x86_64-pc-linux-gnu \
        --target=x86_64-pc-linux-gnu
    configure: error:
    You've selected:

      BUILD:  x86_64-unknown-linux
      HOST:   x86_64-unknown-linux
      TARGET: x86_64-unknown-linux

    BUILD must equal HOST;

18f06878 changed native
configure $build/$host/$target checks to ghc-mangled ones,
but not completely.
Signed-off-by: default avatarSergei Trofimovich <siarheit@google.com>

Reviewers: rwbarton, erikd, austin, hvr, bgamari, Phyx

Reviewed By: Phyx

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2508

GHC Trac Issues: #12487
parent e5ecb201
......@@ -417,7 +417,7 @@ if test "$TargetPlatform" != "$HostPlatform" ; then
# configure: error: cannot run C compiled programs.
# If you meant to cross compile, use `--host'.
fi
if test "$BuildPlatform" != "$host" ; then
if test "$BuildPlatform" != "$HostPlatform" ; then
AC_MSG_ERROR([
You've selected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment