Skip to content

Commit

Permalink
boulder/data: Ensure split-machine-functions are disabled in bolt flags
Browse files Browse the repository at this point in the history
split-machine-functions is an optional flag for PGO optimize builds that
uses the profile data to split hot/cold/unlikely .text sections.

Although disabled by default, BOLT does it's own version of splitting
hot/cold .text which split-machine-functions gets in the way of.
  • Loading branch information
joebonrichie committed Oct 10, 2024
1 parent 8147d4e commit d59fb4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boulder/data/macros/arch/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ flags :
cxx : "-fno-reorder-blocks-and-partition​"
ld : "-Wl,-q"
llvm:
c : "-fno-split-machine-functions"
cxx : "-fno-split-machine-functions"
ld : "-Wl,-q"

# Toggle -fcommon (OFF)
Expand Down

0 comments on commit d59fb4b

Please sign in to comment.