Skip to content

Commit

Permalink
pythongh-101282: Group and quote BOLT CLI flags
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed May 23, 2023
1 parent d56c933 commit c14ec85
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
5 changes: 4 additions & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 26 additions & 17 deletions configure.ac
Expand Up @@ -2085,25 +2085,34 @@ AC_ARG_VAR(
AC_MSG_CHECKING([BOLT_APPLY_FLAGS])
if test -z "${BOLT_APPLY_FLAGS}"
then
AS_VAR_SET(
[BOLT_GENERIC_OPTIONS],
[m4_normalize(["
-dyno-stats
-update-debug-sections
-use-gnu-stack
"])]
)
AS_VAR_SET(
[BOLT_OPTIMIZATION_OPTIONS],
[m4_normalize(["
-frame-opt=hot
-icf=1
-indirect-call-promotion=all
-inline-all
-inline-ap
-jump-tables=aggressive
-peepholes=none
-reorder-blocks=ext-tsp
-reorder-functions-use-hot-size
-reorder-functions=hfsort+
-split-eh
-split-functions
"])]
)
AS_VAR_SET(
[BOLT_APPLY_FLAGS],
[m4_join([ ],
[-update-debug-sections],
[-reorder-blocks=ext-tsp],
[-reorder-functions=hfsort+],
[-split-functions],
[-icf=1],
[-inline-all],
[-split-eh],
[-reorder-functions-use-hot-size],
[-peepholes=none],
[-jump-tables=aggressive],
[-inline-ap],
[-indirect-call-promotion=all],
[-dyno-stats],
[-use-gnu-stack],
[-frame-opt=hot]
)]
["${BOLT_GENERIC_OPTIONS} ${BOLT_OPTIMIZATION_OPTIONS}"]
)
fi
AC_MSG_RESULT([$BOLT_APPLY_FLAGS])
Expand Down

0 comments on commit c14ec85

Please sign in to comment.