Skip to content
Snippets Groups Projects
Commit 16e97c16 authored by Nicolas Trangez's avatar Nicolas Trangez Committed by Ben Gamari
Browse files

Build system: Correctly pass `TARGETPLATFORM` as host

When building the bundled GMP sources, the `HOSTPLATFORM` value was
passed to the `--host` flag of the `./configure` call. This is
incorrect: when building a cross-compiler, e.g. a compiler targeting
ARM but running on X86, the host on which GMP will run is ARM, i.e.
the target platform of the compiler, and the host platform (i.e. the
platform on which the compiler will run) is X86.

See e.g. [1] for more information about the meaning of and relation
between build, host and target.

[1] https://www.gnu.org/software/autoconf/manual/
    autoconf-2.65/html_node/Specifying-Target-Triplets.html

Test Plan: Building ARM cross-compiler with `integer-gmp`

Reviewers: thomie, gracjan, austin, erikd, Phyx, hvr, bgamari

Reviewed By: erikd, bgamari

Subscribers: erikd, gracjan

Differential Revision: https://phabricator.haskell.org/D1960
parent f72bdbd2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment