Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 this branch of eventlog2html: https://github.com/mpickering/eventlog2html/tree/wip/profile-info-table

@pepeiborra

This comment has been minimized.

Copy link

@pepeiborra pepeiborra commented Jan 10, 2021

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