Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-romes committed Jan 17, 2024
1 parent 05925f5 commit 74b5e60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 7 additions & 3 deletions Cabal/src/Distribution/Simple/GHC/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,13 @@ build numJobs pkg_descr = do
-- See also Note [Building Haskell Modules accounting for TH] in Distribution.Simple.GHC.Build.Modules
wantedWays =
Set.fromList $
[StaticWay | wantStatic || wantVanilla ||
-- We build static by default if no other way is wanted
not (wantDynamic || wantProf)]
[ StaticWay
| wantStatic
|| wantVanilla
||
-- We build static by default if no other way is wanted
not (wantDynamic || wantProf)
]
<> [DynWay | wantDynamic]
<> [ProfWay | wantProf]

Expand Down
10 changes: 5 additions & 5 deletions Cabal/src/Distribution/Simple/GHC/Build/Link.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ linkOrLoadComponent ghcProg pkg_descr extraSources (buildTargetDir, targetDir) (
case what of
BuildRepl replFlags -> liftIO $ do
let
-- For repl we use the vanilla ghc options
-- For repl we use the vanilla (static) ghc options
staticOpts = buildOpts StaticWay
replOpts =
vanillaOpts
staticOpts
{ ghcOptExtra =
Internal.filterGhciFlags
(ghcOptExtra vanillaOpts)
(ghcOptExtra staticOpts)
<> replOptionsFlags (replReplOptions replFlags)
, ghcOptInputModules = replNoLoad (replReplOptions replFlags) (ghcOptInputModules vanillaOpts)
, ghcOptInputFiles = replNoLoad (replReplOptions replFlags) (ghcOptInputFiles vanillaOpts)
, ghcOptInputModules = replNoLoad (replReplOptions replFlags) (ghcOptInputModules staticOpts)
, ghcOptInputFiles = replNoLoad (replReplOptions replFlags) (ghcOptInputFiles staticOpts)
}
-- For a normal compile we do separate invocations of ghc for
-- compiling as for linking. But for repl we have to do just
Expand Down

0 comments on commit 74b5e60

Please sign in to comment.