Skip to content

Commit 4607e88

Browse files
[3.11] gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848) (GH-94951)
Co-authored-by: Christian Heimes <[email protected]>
1 parent 7dc236d commit 4607e88

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed ``_decimal`` module build issue on GCC when compiling with LTO and
2+
pydebug. Debug builds no longer force inlining of functions.

configure

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+5
Original file line numberDiff line numberDiff line change
@@ -3628,6 +3628,11 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
36283628
LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
36293629
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
36303630
LIBMPDEC_INTERNAL="\$(LIBMPDEC_A)"
3631+
3632+
dnl Disable forced inlining in debug builds, see GH-94847
3633+
AS_VAR_IF([with_pydebug], [yes], [
3634+
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])
3635+
])
36313636
])
36323637

36333638
AC_SUBST([LIBMPDEC_CFLAGS])

0 commit comments

Comments
 (0)