8000 gh-110276: No longer ignore PROFILE_TASK failure silently (#110295) · python/cpython@6ab6040 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ab6040

Browse files
authored
gh-110276: No longer ignore PROFILE_TASK failure silently (#110295)
1 parent eeb4e97 commit 6ab6040

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Doc/using/configure.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,9 @@ also be used to improve performance.
518518

519519
.. versionadded:: 3.8
520520

521+
.. versionchanged:: 3.13
522+
Task failure is no longer ignored silently.
523+
521524
.. cmdoption:: --with-lto=[full|thin|no|yes]
522525

523526
Enable Link Time Optimization (LTO) in any build (disabled by default).

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ profile-run-stamp:
657657
$(MAKE) profile-gen-stamp
658658
# Next, run the profile task to generate the profile information.
659659
@ # FIXME: can't run for a cross build
660-
$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
660+
$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
661661
$(LLVM_PROF_MERGER)
662662
# Remove profile generation binary since we are done with it.
663663
$(MAKE) clean-retain-profile
@@ -706,7 +706,7 @@ profile-bolt-stamp: $(BUILDPYTHON)
706706
mv "$${bin}.bolt_inst" "$${bin}"; \
707707
done
708708
# Run instrumented binaries to collect data.
709-
$(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
709+
$(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
710710
# Merge all the data files together.
711711
for bin in $(BOLT_BINARIES); do \
712712
@MERGE_FDATA@ $${bin}.*.fdata > "$${bin}.fdata"; \
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
No longer ignore :envvar:`PROFILE_TASK` failure silently: command used by
2+
Profile Guided Optimization (PGO). Patch by Victor Stinner.

0 commit comments

Comments
 (0)
0