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

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Miss Islington (bot) 2022-07-18 05:42:42 -07:00 committed by GitHub
parent 7dc236d116
commit 4607e884e5
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

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

View file

@ -3628,6 +3628,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])