Skip to content

Commit 40fd466

Browse files
miss-islingtonzaniebindygreg
authored
[3.13] gh-128437: Add BOLT_COMMON_FLAGS with -update-debug-sections (gh-128455) (gh-128512)
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 <[email protected]> Co-authored-by: Gregory Szorc <[email protected]>
1 parent b2bacbb commit 40fd466

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
@@ -2214,14 +2214,28 @@ AS_VAR_IF([enable_shared], [yes], [
22142214
BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)"
22152215
])
22162216

2217+
AC_ARG_VAR(
2218+
[BOLT_COMMON_FLAGS],
2219+
[Common arguments to llvm-bolt when instrumenting and applying]
2220+
)
2221+
2222+
AC_MSG_CHECKING([BOLT_COMMON_FLAGS])
2223+
if test -z "${BOLT_COMMON_FLAGS}"
2224+
then
2225+
AS_VAR_SET(
2226+
[BOLT_COMMON_FLAGS],
2227+
[-update-debug-sections]
2228+
)
2229+
fi
2230+
22172231
AC_ARG_VAR(
22182232
[BOLT_INSTRUMENT_FLAGS],
22192233
[Arguments to llvm-bolt when instrumenting binaries]
22202234
)
22212235
AC_MSG_CHECKING([BOLT_INSTRUMENT_FLAGS])
22222236
if test -z "${BOLT_INSTRUMENT_FLAGS}"
22232237
then
2224-
BOLT_INSTRUMENT_FLAGS=
2238+
BOLT_INSTRUMENT_FLAGS="${BOLT_COMMON_FLAGS}"
22252239
fi
22262240
AC_MSG_RESULT([$BOLT_INSTRUMENT_FLAGS])
22272241

@@ -2235,7 +2249,7 @@ then
22352249
AS_VAR_SET(
22362250
[BOLT_APPLY_FLAGS],
22372251
[m4_normalize("
2238-
-update-debug-sections
2252+
${BOLT_COMMON_FLAGS}
22392253
-reorder-blocks=ext-tsp
22402254
-reorder-functions=cdsort
22412255
-split-functions

0 commit comments

Comments
 (0)