From: Matthias Klose Date: Thu, 16 Dec 2021 23:13:29 +0000 (+0000) Subject: profiled-build X-Git-Tag: archive/raspbian/3.9.9-3+rpi1~1^2~27 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3ac6b89e11133b59ea76020b54ecf09f20a4c25a;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 11230fa..96d9f68 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)