summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Build
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-06 18:09:21 (GMT)
committerGitHub <noreply@github.com>2023-09-06 18:09:21 (GMT)
commitdb1ee6a19ab62191c16ecb732cb4dcaede98a902 (patch)
tree05a4657232b5ce1898572fd4faba60adc48c3200 /Misc/NEWS.d/next/Build
parenta0773b89dfe5cd2190d539905dd89e7f6455668e (diff)
downloadcpython-db1ee6a19ab62191c16ecb732cb4dcaede98a902.zip
cpython-db1ee6a19ab62191c16ecb732cb4dcaede98a902.tar.gz
cpython-db1ee6a19ab62191c16ecb732cb4dcaede98a902.tar.bz2
gh-108740: Fix "make regen-all" race condition (#108741)
Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated. * "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic". * "make clinic" no longer runs generate_global_objects.py script. * "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore. * Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use. * Document generates files in Doc/using/configure.rst. Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Misc/NEWS.d/next/Build')
-rw-r--r--Misc/NEWS.d/next/Build/2023-09-01-01-39-26.gh-issue-108740.JHExAQ.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2023-09-01-01-39-26.gh-issue-108740.JHExAQ.rst b/Misc/NEWS.d/next/Build/2023-09-01-01-39-26.gh-issue-108740.JHExAQ.rst
new file mode 100644
index 0000000..190d503
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2023-09-01-01-39-26.gh-issue-108740.JHExAQ.rst
@@ -0,0 +1,4 @@
+Fix a race condition in ``make regen-all``. The ``deepfreeze.c`` source and
+files generated by Argument Clinic are now generated or updated before
+generating "global objects". Previously, some identifiers may miss depending
+on the order in which these files were generated. Patch by Victor Stinner.