Skip to content

Hadrian: refactor GMP in-tree build support (#17756)

Sylvain Henry requested to merge hsyl20/ghc:hsyl20-gmp-intree into master
  • Hadrian doesn't rely on integer-gmp's config.mk (untracked) to detect if in-tree GMP build should be used. It only relies on was has been passed to the top level configure (--with-intree-gmp or not).

  • in-tree GMP isn't built once for all in a fixed stage (Stage1) anymore. It is built per stage which is required if we build a cross-compiler

  • "wrappers.c" now includes "ghc-gmp.h" instead of "ghc.h"

  • switching between in-tree and external GMP is now supported

  • build in-tree GMP in "/stageN/gmp/gmpbuild" and produce useful artefacts (libgmp.a, gmp.h, objs/*.o) in "/stageN/gmp"

Edited by Sylvain Henry

Merge request reports