8000 [3.12] gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-section… · python/cpython@90535fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 90535fe

Browse files
miss-islingtonzaniebindygreg
authored
[3.12] gh-128437: Add BOLT_COMMON_FLAGS with -update-debug-sections (gh-128455) (gh-128513)
gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455) Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (cherry picked from commit b60044b) Co-authored-by: Zanie Blue <contact@zanie.dev> Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
1 parent 06e4173 commit 90535fe

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

configure

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,14 +2104,28 @@ AS_VAR_IF([enable_shared], [yes], [
21042104
BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)"
21052105
])
21062106

2107+
AC_ARG_VAR(
2108+
[BOLT_COMMON_FLAGS],
2109+
[Common arguments to llvm-bolt when instrumenting and applying]
2110+
)
2111+
2112+
AC_MSG_CHECKING([BOLT_COMMON_FLAGS])
2113+
if test -z "${BOLT_COMMON_FLAGS}"
2114+
then
2115+
AS_VAR_SET(
2116+
[BOLT_COMMON_FLAGS],
2117+
[-update-debug-sections]
2118+
)
2119+
fi
2120+
21072121
AC_ARG_VAR(
21082122
[BOLT_INSTRUMENT_FLAGS],
21092123
[Arguments to llvm-bolt when instrumenting binaries]
21102124
)
21112125
AC_MSG_CHECKING([BOLT_INSTRUMENT_FLAGS])
21122126
if test -z "${BOLT_INSTRUMENT_FLAGS}"
21132127
then
2114-
BOLT_INSTRUMENT_FLAGS=
2128+
BOLT_INSTRUMENT_FLAGS="${BOLT_COMMON_FLAGS}"
21152129
fi
21162130
AC_MSG_RESULT([$BOLT_INSTRUMENT_FLAGS])
21172131

@@ -2125,7 +2139,7 @@ then
21252139
AS_VAR_SET(
21262140
[BOLT_APPLY_FLAGS],
21272141
[m4_normalize("
2128-
-update-debug-sections
2142+
${BOLT_COMMON_FLAGS}
21292143
-reorder-blocks=ext-tsp
21302144
-reorder-functions=cdsort
21312145
-split-functions

0 commit comments

Comments
 (0)
0