gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848)

This commit is contained in:
Christian Heimes 2022-07-18 08:47:03 +02:00 committed by GitHub
parent c961d14f85
commit 97b4121f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -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
configure generated vendored
View File

@ -12522,6 +12522,12 @@ else
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)" LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
LIBMPDEC_INTERNAL="\$(LIBMPDEC_A)" LIBMPDEC_INTERNAL="\$(LIBMPDEC_A)"
if test "x$with_pydebug" = xyes; then :
as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
fi
fi fi

View File

@ -3697,6 +3697,11 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec" LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)" LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
LIBMPDEC_INTERNAL="\$(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]) AC_SUBST([LIBMPDEC_CFLAGS])