profiled-build
authorMatthias Klose <doko@debian.org>
Fri, 3 Sep 2021 06:18:44 +0000 (07:18 +0100)
committerMatthias Klose <doko@debian.org>
Fri, 3 Sep 2021 06:18:44 +0000 (07:18 +0100)
# DP: Ignore errors in the profile task.

# DP: Ignore errors in the profile task.

Gbp-Pq: Name profiled-build.diff

Makefile.pre.in

index 6ce7a614dce23825d5a175102295023ebe452297..66c86865efd18cb9a9d58f975c4dd44d7e03e0a9 100644 (file)
@@ -524,6 +524,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)