Skip to content

Commit ceec41a

Browse files
committed
Don't build _stat with TraceRefs
Lib/stat.py only uses the _stat extension if it's available.
1 parent d22aca8 commit ceec41a

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

Modules/Setup.bootstrap.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _abc _abc.c
2929
_functools _functoolsmodule.c
3030
_locale _localemodule.c
3131
_operator _operator.c
32-
_stat _stat.c
32+
@MODULE__STAT_TRUE@_stat _stat.c
3333
_symtable symtablemodule.c
3434

3535
# for systems without $HOME env, used by site._getuserbase()

configure

Lines changed: 45 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7111,6 +7111,9 @@ PY_STDLIB_MOD_SIMPLE([_xxsubinterpreters])
71117111
PY_STDLIB_MOD_SIMPLE([_xxinterpchannels])
71127112
PY_STDLIB_MOD_SIMPLE([_zoneinfo])
71137113

7114+
dnl bootstrap modules
7115+
PY_STDLIB_MOD([_stat], [test "$TEST_MODULES" = yes -a "$with_trace_refs" = "no"])
7116+
71147117
dnl multiprocessing modules
71157118
PY_STDLIB_MOD([_multiprocessing],
71167119
[], [test "$ac_cv_func_sem_unlink" = "yes"],

0 commit comments

Comments
 (0)