profiled-build
authorMatthias Klose <doko@debian.org>
Wed, 12 Jan 2022 16:10:51 +0000 (16:10 +0000)
committerMatthias Klose <doko@debian.org>
Wed, 12 Jan 2022 16:10:51 +0000 (16:10 +0000)
# DP: Ignore errors in the profile task.

# DP: Ignore errors in the profile task.

Gbp-Pq: Name profiled-build.diff

Makefile.pre.in

index 11230fa563d161f21c1d49ecd555c7ef7c154c8e..96d9f68ddc429671001f42f5ab5cd7027b247177 100644 (file)
@@ -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)