From 5025a7003271e8eca137d6394c1b4f30ada68665 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Mon, 30 May 2022 08:47:41 +0100 Subject: Revert "packaging: Build perf builds with -split-sections" This reverts commit 699f593532a3cd5ca1c2fab6e6e4ce9d53be2c1f. Split sections causes segfaults in profiling way with old toolchains (deb9) and on windows (#21670) Fixes #21670 --- hadrian/doc/flavours.md | 13 ------------- hadrian/src/Settings/Flavours/Performance.hs | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/hadrian/doc/flavours.md b/hadrian/doc/flavours.md index 609be65e3e..713b945255 100644 --- a/hadrian/doc/flavours.md +++ b/hadrian/doc/flavours.md @@ -15,7 +15,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH - @@ -36,7 +35,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -48,7 +46,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -60,7 +57,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -72,7 +68,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -84,7 +79,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -96,7 +90,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -120,7 +113,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -132,7 +124,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -144,7 +135,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -156,7 +146,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -168,7 +157,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH @@ -180,7 +168,6 @@ when compiling the `compiler` library, and `hsGhc` when compiling/linking the GH diff --git a/hadrian/src/Settings/Flavours/Performance.hs b/hadrian/src/Settings/Flavours/Performance.hs index 17fb22b6ec..fc46920703 100644 --- a/hadrian/src/Settings/Flavours/Performance.hs +++ b/hadrian/src/Settings/Flavours/Performance.hs @@ -6,7 +6,7 @@ import {-# SOURCE #-} Settings.Default -- Please update doc/flavours.md when changing this file. performanceFlavour :: Flavour -performanceFlavour = splitSections $ defaultFlavour +performanceFlavour = defaultFlavour { name = "perf" , args = defaultBuilderArgs <> performanceArgs <> defaultPackageArgs } -- cgit v1.2.1
FlavourSplit Sections Extra arguments
default
-
-O
-H32m
-O2
-H32m
quick - -O0
-H64m
-O0
-H64m
quick-validate - -O0
-H64m
-Werror
-O0
-H64m
-Werror
quick-debug - -O0
-H64m
-O0
-H64m
quickest - -O0
-H64m
-O0
-H64m
perf - Yes (on supported platforms) -O
-H64m
-O
-H64m
bench - -O
-H64m
-O
-H64m
devel1 - -O
-H64m
-O
-H64m
devel2 - -O
-H64m
-O
-H64m
validate - -O0
-H64m
-fllvm-fill-undef-with-garbage
slow-validate - -O0
-H64m
-fllvm-fill-undef-with-garbage
static - -O
-H64m
-fPIC -static
-O
-H64m
-fPIC -static