Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Add a target for threaded rts library.
Browse files Browse the repository at this point in the history
See #98.
  • Loading branch information
snowleopard committed Jan 29, 2016
1 parent 3b0fdab commit 8f9dd7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ allStages = [minBound ..]
-- | 'need' all top-level build targets
generateTargets :: Rules ()
generateTargets = action $ do
targets <- fmap concat (traverse targetsForStage allStages)
rtsLib <- pkgLibraryFile Stage1 rts "rts" vanilla
need $ targets ++ installTargets ++ [ rtsLib ]
targets <- fmap concat (traverse targetsForStage allStages)
rtsLib <- pkgLibraryFile Stage1 rts "rts" vanilla
rtsThrLib <- pkgLibraryFile Stage1 rts "rts" threaded
need $ targets ++ installTargets ++ [ rtsLib, rtsThrLib ]

targetsForStage :: Stage -> Action [String]
targetsForStage stage = do
Expand Down

0 comments on commit 8f9dd7e

Please sign in to comment.