Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix ``--enable-bolt`` build failures on AArch64 with recent LLVM: pass
``-frame-opt=hot`` only on x86. Patch by Donghee Na.
9 changes: 8 additions & 1 deletion configure

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

8 changes: 7 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2288,6 +2288,12 @@ AC_ARG_VAR(
AC_MSG_CHECKING([BOLT_APPLY_FLAGS])
if test -z "${BOLT_APPLY_FLAGS}"
then
dnl The frame optimizer is only implemented for x86. BOLT 22 and newer
dnl refuse to run it on other architectures.
AS_CASE([$host_cpu],
[x86_64], [bolt_frame_opt_flags="-frame-opt=hot"],
[bolt_frame_opt_flags=""]
)
AS_VAR_SET(
[BOLT_APPLY_FLAGS],
[m4_normalize("
Expand All @@ -2305,7 +2311,7 @@ then
-indirect-call-promotion=all
-dyno-stats
-use-gnu-stack
-frame-opt=hot
${bolt_frame_opt_flags}
")]
)
fi
Expand Down
Loading