Skip to content

Instantly share code, notes, and snippets.

@DavidEichmann
Forked from mpickering/hadrian.settings
Last active October 22, 2021 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidEichmann/63f9a5fff9ca072f808122fe09a540ba to your computer and use it in GitHub Desktop.
Save DavidEichmann/63f9a5fff9ca072f808122fe09a540ba to your computer and use it in GitHub Desktop.
Backport instructions
stage1.*.ghc.hs.opts += -finfo-table-map -fdistinct-constructor-tables
stage1.ghc-bin.ghc.link.opts += -eventlog

These instructions will tell you how to build GHC 8.10.2 with support for the -hi, -finfo-table-map and -fdistinct-constructor-tables flags.

First checkout this GHC Branch: https://gitlab.haskell.org/mpickering/ghc/-/commits/ghc-con-info-backport. Then:

  1. mkdir _build, Copy the hadrian.settings file into _build.
  2. git submodule update --init
  3. perl boot
  4. ./configure
  5. ./hadrian/build.cabal.sh -j4

Viewing the profile

If you wish to view the profile, use eventlog2html version 0.9.0 or newer.

@pepeiborra
Copy link

where does the hadrian.settings file go? I've never used Hadrian to build ghc before and the docs do not seem to mention this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment