From: Matthias Klose Date: Thu, 17 Mar 2022 07:20:01 +0000 (+0000) Subject: profiled-build X-Git-Tag: archive/raspbian/3.9.11-1+rpi1^2~27 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec537de0031be3988ba8c17eec904c4d34fd588c;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 42b1ec6..2a74e59 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -523,6 +523,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)