Skip to content

Commit 97b4121

Browse files
authored
gh-94847: Don't force inlining in debug builds of libmpdec (GH-94848)
1 parent c961d14 commit 97b4121

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
@@ -3697,6 +3697,11 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
36973697
LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
36983698
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
36993699
LIBMPDEC_INTERNAL="\$(LIBMPDEC_A)"
3700+
3701+
dnl Disable forced inlining in debug builds, see GH-94847
3702+
AS_VAR_IF([with_pydebug], [yes], [
3703+
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])
3704+
])
37003705
])
37013706

37023707
AC_SUBST([LIBMPDEC_CFLAGS])

0 commit comments

Comments
 (0)