Skip to content

Commit

Permalink
pythongh-94847: Don't force inlining in debug builds of libmpdec (pyt…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Jul 18, 2022
1 parent c961d14 commit 97b4121
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed ``_decimal`` module build issue on GCC when compiling with LTO and
pydebug. Debug builds no longer force inlining of functions.
6 changes: 6 additions & 0 deletions configure

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

5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3697,6 +3697,11 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
LIBMPDEC_INTERNAL="\$(LIBMPDEC_A)"
dnl Disable forced inlining in debug builds, see GH-94847
AS_VAR_IF([with_pydebug], [yes], [
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])
])
])

AC_SUBST([LIBMPDEC_CFLAGS])
Expand Down

0 comments on commit 97b4121

Please sign in to comment.