From: Matthias Klose Date: Sun, 28 Feb 2021 17:03:44 +0000 (+0000) Subject: profiled-build X-Git-Tag: archive/raspbian/3.9.2-1+rpi1^2~26 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4e20497943e41067031366a0d63b49792dbbb554;p=python3.9.git profiled-build # DP: Ignore errors in the profile task. # DP: Ignore errors in the profile task. Gbp-Pq: Name profiled-build.diff --- diff --git a/Makefile.pre.in b/Makefile.pre.in index f128444..10e99bd 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -521,6 +521,16 @@ build_all_generate_profile: run_profile_task: @ # FIXME: can't run for a cross build $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true + task="$(PROFILE_TASK)"; \ + case "$$task" in \ + *-s\ *) \ + $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $$task; \ + while [ -f $(abs_builddir)/build/pynexttest ]; do \ + $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $$task; \ + done;; \ + *) \ + $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $$task; \ + esac build_all_merge_profile: $(LLVM_PROF_MERGER)