diff options
| author | Patrick Palka <patrick@parcs.ath.cx> | 2013-08-30 12:57:12 -0400 |
|---|---|---|
| committer | Patrick Palka <patrick@parcs.ath.cx> | 2013-08-30 14:09:42 -0400 |
| commit | 1c3315341a41accdc6b31a492132be0fab681a5c (patch) | |
| tree | ab14c89676da524d9cfe746a0c63666482a028f6 /compiler | |
| parent | 26bf3dd478dce53eb50c2ce13821d61e416e3fe7 (diff) | |
| download | haskell-1c3315341a41accdc6b31a492132be0fab681a5c.tar.gz | |
Rename DynFlags.parUpsweepNum to parMakeCount
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/main/DynFlags.hs | 8 | ||||
| -rw-r--r-- | compiler/main/GhcMake.hs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 37b016b4ad..1fca713f87 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -582,8 +582,8 @@ data DynFlags = DynFlags { ruleCheck :: Maybe String, strictnessBefore :: [Int], -- ^ Additional demand analysis - parUpsweepNum :: Maybe Int, -- ^ The number of modules to compile in parallel - -- during the upsweep, where Nothing ==> compile as + parMakeCount :: Maybe Int, -- ^ The number of modules to compile in parallel + -- in --make mode, where Nothing ==> compile as -- many in parallel as there are CPUs. maxRelevantBinds :: Maybe Int, -- ^ Maximum number of bindings from the type envt @@ -1270,7 +1270,7 @@ defaultDynFlags mySettings = historySize = 20, strictnessBefore = [], - parUpsweepNum = Just 1, + parMakeCount = Just 1, cmdlineHcIncludes = [], importPaths = ["."], @@ -2030,7 +2030,7 @@ dynamic_flags = [ addWarn "-#include and INCLUDE pragmas are deprecated: They no longer have any effect")) , Flag "v" (OptIntSuffix setVerbosity) - , Flag "j" (OptIntSuffix (\n -> upd (\d -> d {parUpsweepNum = n}))) + , Flag "j" (OptIntSuffix (\n -> upd (\d -> d {parMakeCount = n}))) ------- ways -------------------------------------------------------- , Flag "prof" (NoArg (addWay WayProf)) diff --git a/compiler/main/GhcMake.hs b/compiler/main/GhcMake.hs index 5fc21f3084..3581aa0bef 100644 --- a/compiler/main/GhcMake.hs +++ b/compiler/main/GhcMake.hs @@ -270,7 +270,7 @@ load how_much = do liftIO $ debugTraceMsg dflags 2 (hang (text "Ready for upsweep") 2 (ppr mg)) - n_jobs <- case parUpsweepNum dflags of + n_jobs <- case parMakeCount dflags of Nothing -> liftIO getNumProcessors Just n -> return n let upsweep_fn | n_jobs > 1 = parUpsweep n_jobs |
