Skip to content

Commit 20177b4

Browse files
committed
gh-94847: Don't force inlining in debug builds of libmpdec
1 parent 81dca70 commit 20177b4

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 2 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3672,6 +3672,11 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
36723672
LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
36733673
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
36743674
LIBMPDEC_INTERNAL="\$(LIBMPDEC_A)"
3675+
3676+
dnl Disable forced inlining in debug builds, see GH-94847
3677+
AS_VAR_IF([with_pydebug], [yes], [
3678+
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])
3679+
])
36753680
])
36763681

36773682
AC_SUBST([LIBMPDEC_CFLAGS])

0 commit comments

Comments
 (0)