Build system: use stage0 to build dll-split
authorThomas Miedema <thomasmiedema@gmail.com>
Sat, 7 Nov 2015 23:19:55 +0000 (00:19 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sat, 7 Nov 2015 23:54:05 +0000 (00:54 +0100)
commitd9c1450a8e2f4af6a8347f64ba2cee98304dbe27
tree5e5b41d81c6e0e2b07946dbf77ef6520dd30c75b
parent22080113f02f6644e2a0e3ce8adb1502346ab3b4
Build system: use stage0 to build dll-split

When cross-compiling ghc itself, this prevents:

  "dll-split: cannot execute binary file: Exec format error"

Test Plan:
   * ./configure --target=arm-linux-gnueabihf
   * DYNAMIC_GHC_PROGRAMS=YES
   * Stage1Only=NO

Reviewers: rwbarton, bgamari, austin

Reviewed By: austin

Differential Revision: https://phabricator.haskell.org/D1430
ghc.mk
utils/dll-split/ghc.mk