Expand $tooldir in ghc --info output
authorAlp Mestanogullari <alp@well-typed.com>
Sat, 12 May 2018 07:36:19 +0000 (08:36 +0100)
committerTamar Christina <tamar@zhox.com>
Sat, 12 May 2018 08:10:26 +0000 (09:10 +0100)
commit37810347dfeda977e7036cf8bc87ba079f094baa
tree62d5e8ef0befc1ba699134b0327d6db5630cf39b
parentcb5c2fe875965b7aedbc189012803fc62e48fb3f
Expand $tooldir in ghc --info output

Summary:
This requires adding an `sToolDir :: Maybe FilePath` field to Settings, since
compilerInfo is pure and therefore needs to have all the information
available in the DynFlags.

This should fix #15101 and #15107.

Test Plan: ./validate --fast

Reviewers: Phyx, bgamari

Reviewed By: Phyx

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #15101, #15107

Differential Revision: https://phabricator.haskell.org/D4686
compiler/main/DynFlags.hs
compiler/main/SysTools.hs