Skip to content
Snippets Groups Projects
Commit 699f5935 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

packaging: Build perf builds with -split-sections

In 8f71d958 the make build system was made to use split-sections on
linux systems but it appears this logic never made it to hadrian.
There is the split_sections flavour transformer but this doesn't appear
to be used for perf builds on linux.

Closes #21135
parent 142a73d9
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -15,6 +15,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
<table> <table>
<tr> <tr>
<th rowspan="3">Flavour</th> <th rowspan="3">Flavour</th>
<th rowspan="3">Split Sections</th>
<th colspan="8">Extra arguments</th> <th colspan="8">Extra arguments</th>
</tr> </tr>
<tr> <tr>
...@@ -35,6 +36,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -35,6 +36,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>default<br></td> <th>default<br></td>
<td> </td>
<td>-O<br>-H32m<br></td> <td>-O<br>-H32m<br></td>
<td>-O2<br>-H32m</td> <td>-O2<br>-H32m</td>
<td></td> <td></td>
...@@ -46,6 +48,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -46,6 +48,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>quick</td> <th>quick</td>
<td> </td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td></td> <td></td>
...@@ -57,6 +60,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -57,6 +60,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>quick-validate</td> <th>quick-validate</td>
<td></td>
<td>-O0<br>-H64m<br>-Werror</td> <td>-O0<br>-H64m<br>-Werror</td>
<td>-O0<br>-H64m<br>-Werror</td> <td>-O0<br>-H64m<br>-Werror</td>
<td></td> <td></td>
...@@ -68,6 +72,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -68,6 +72,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>quick-debug</td> <th>quick-debug</td>
<td></td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td></td> <td></td>
...@@ -79,6 +84,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -79,6 +84,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>quickest</td> <th>quickest</td>
<td></td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td></td> <td></td>
...@@ -90,6 +96,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -90,6 +96,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>perf</td> <th>perf</td>
<td> Yes (on supported platforms) </td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td></td> <td></td>
...@@ -101,6 +108,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -101,6 +108,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>bench</td> <th>bench</td>
<td></td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td></td> <td></td>
...@@ -112,6 +120,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -112,6 +120,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>devel1</td> <th>devel1</td>
<td></td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td></td> <td></td>
...@@ -123,6 +132,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -123,6 +132,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>devel2</td> <th>devel2</td>
<td></td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td>-O<br>-H64m</td> <td>-O<br>-H64m</td>
<td></td> <td></td>
...@@ -134,6 +144,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -134,6 +144,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>validate</td> <th>validate</td>
<td></td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td>-fllvm-fill-undef-with-garbage</td> <td>-fllvm-fill-undef-with-garbage</td>
<td></td> <td></td>
...@@ -145,6 +156,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -145,6 +156,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>slow-validate</td> <th>slow-validate</td>
<td></td>
<td>-O0<br>-H64m</td> <td>-O0<br>-H64m</td>
<td>-fllvm-fill-undef-with-garbage</td> <td>-fllvm-fill-undef-with-garbage</td>
<td></td> <td></td>
...@@ -156,6 +168,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH ...@@ -156,6 +168,7 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH
</tr> </tr>
<tr> <tr>
<th>static</td> <th>static</td>
<td></td>
<td>-O<br>-H64m<br>-fPIC -static</td> <td>-O<br>-H64m<br>-fPIC -static</td>
<td>-O<br>-H64m<br>-fPIC -static</td> <td>-O<br>-H64m<br>-fPIC -static</td>
<td></td> <td></td>
......
...@@ -6,7 +6,7 @@ import {-# SOURCE #-} Settings.Default ...@@ -6,7 +6,7 @@ import {-# SOURCE #-} Settings.Default
-- Please update doc/flavours.md when changing this file. -- Please update doc/flavours.md when changing this file.
performanceFlavour :: Flavour performanceFlavour :: Flavour
performanceFlavour = defaultFlavour performanceFlavour = splitSections $ defaultFlavour
{ name = "perf" { name = "perf"
, args = defaultBuilderArgs <> performanceArgs <> defaultPackageArgs } , args = defaultBuilderArgs <> performanceArgs <> defaultPackageArgs }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment