Commit 1be81c50 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Ben Gamari

Add O2 to hsCompiler on stage0 for most hadrian flavours.

parent 92c7e70f
......@@ -50,8 +50,8 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
<td>-O0<br>-H64m</td>
<td></td>
<td>-O</td>
<td>-O2</td>
<td>-O</td>
<td></td>
<td>-O</td>
<td></td>
</tr>
......@@ -72,7 +72,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
<td>-O<br>-H64m</td>
<td></td>
<td>-O2</td>
<td>-O</td>
<td>-O2</td>
<td>-O2</td>
<td>-O</td>
<td>-O2</td>
......@@ -83,8 +83,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
<td>-O0<br>-H64m</td>
<td></td>
<td>-O</td>
<td>-O</td>
<td>-O</td>
<td>-O2</td>
<td>-O</td>
<td>-O</td>
</tr>
......@@ -105,7 +104,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
<td>-O<br>-H64m</td>
<td></td>
<td>-dcore-lint</td>
<td></td>
<td>-O2</td>
<td>-O0<br>-DDEBUG</td>
<td></td>
<td>-O0<br>-DDEBUG</td>
......
......@@ -19,5 +19,6 @@ developmentArgs ghcStage = do
sourceArgs SourceArgs
{ hsDefault = pure ["-O", "-H64m"]
, hsLibrary = notStage0 ? arg "-dcore-lint"
, hsCompiler = succ stage == ghcStage ? pure ["-O0", "-DDEBUG"]
, hsCompiler = mconcat [stage0 ? arg "-O2",
succ stage == ghcStage ? pure ["-O0", "-DDEBUG"]]
, hsGhc = succ stage == ghcStage ? pure ["-O0", "-DDEBUG"] }
......@@ -14,5 +14,5 @@ performanceArgs :: Args
performanceArgs = sourceArgs SourceArgs
{ hsDefault = pure ["-O", "-H64m"]
, hsLibrary = notStage0 ? arg "-O2"
, hsCompiler = mconcat [stage0 ? arg "-O", notStage0 ? arg "-O2"]
, hsCompiler = pure ["-O2"]
, hsGhc = mconcat [stage0 ? arg "-O", notStage0 ? arg "-O2"] }
......@@ -19,5 +19,5 @@ profiledArgs = sourceArgs SourceArgs
, naturalInBaseFixArgs
]
, hsLibrary = notStage0 ? arg "-O"
, hsCompiler = arg "-O"
, hsCompiler = mconcat [stage0 ? arg "-O2", notStage0 ? arg "-O"]
, hsGhc = arg "-O" }
......@@ -30,5 +30,5 @@ quickArgs = sourceArgs SourceArgs
, naturalInBaseFixArgs
]
, hsLibrary = notStage0 ? arg "-O"
, hsCompiler = stage0 ? arg "-O"
, hsCompiler = stage0 ? arg "-O2"
, hsGhc = stage0 ? arg "-O" }
......@@ -31,7 +31,7 @@ quickCrossArgs = sourceArgs SourceArgs
, naturalInBaseFixArgs
]
, hsLibrary = notStage0 ? mconcat [ arg "-O", arg "-fllvm" ]
, hsCompiler = stage0 ? arg "-O"
, hsCompiler = stage0 ? arg "-O2"
, hsGhc = mconcat
[ stage0 ? arg "-O"
, stage1 ? mconcat [ arg "-O0", arg "-fllvm" ] ] }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment