mirror of https://github.com/python/cpython
gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848)
This commit is contained in:
parent
c961d14f85
commit
97b4121f93
|
@ -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.
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue