profiled-build
authorMatthias Klose <doko@debian.org>
Sun, 1 Dec 2024 12:12:57 +0000 (14:12 +0200)
committerAdrian Bunk <bunk@debian.org>
Sun, 1 Dec 2024 12:12:57 +0000 (14:12 +0200)
# DP: Ignore errors in the profile task.

# DP: Ignore errors in the profile task.

Gbp-Pq: Name profiled-build.diff

Makefile.pre.in

index f128444b98594e17d428a2eec56658bd337b3c3a..10e99bdf89a233f68e8ceadde3835eeda00dbfa6 100644 (file)
@@ -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)