diff options
author | David Eichmann <EichmannD@gmail.com> | 2019-02-27 18:31:13 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-04-14 01:08:15 -0400 |
commit | 5f1830817b90960d5d11bee95a99df3e1425f8ab (patch) | |
tree | bc498b68451481e2a82834c909d990d041bc7b0e /hadrian/src/Rules/Register.hs | |
parent | 40848a43072768d5a0a41a1df05f7a8ffd85f345 (diff) | |
download | haskell-5f1830817b90960d5d11bee95a99df3e1425f8ab.tar.gz |
Hadrian: add rts shared library symlinks for backwards compatability
Fixes test T3807 when building with Hadrian.
Trac #16370
Diffstat (limited to 'hadrian/src/Rules/Register.hs')
-rw-r--r-- | hadrian/src/Rules/Register.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Register.hs b/hadrian/src/Rules/Register.hs index f278cc76f9..39899738c1 100644 --- a/hadrian/src/Rules/Register.hs +++ b/hadrian/src/Rules/Register.hs @@ -8,6 +8,7 @@ import Hadrian.Haskell.Cabal import Oracles.Setting import Packages import Rules.Gmp +import Rules.Rts import Settings import Target import Utilities @@ -117,6 +118,9 @@ buildConf _ context@Context {..} conf = do Cabal.copyPackage context Cabal.registerPackage context + -- | Dynamic RTS library files need symlinks (Rules.Rts.rtsRules). + when (package == rts) (needRtsSymLinks stage ways) + -- The above two steps produce an entry in the package database, with copies -- of many of the files we have build, e.g. Haskell interface files. We need -- to record this side effect so that Shake can cache these files too. |