profiled-build
authorMatthias Klose <doko@debian.org>
Sun, 16 Jan 2022 17:12:18 +0000 (17:12 +0000)
committerMatthias Klose <doko@debian.org>
Sun, 16 Jan 2022 17:12:18 +0000 (17:12 +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 42b1ec622accc265022be5bc60c1359c5449f043..2a74e59cd8d8eab0d6eef13843884e5bb850e87d 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)