profiled-build
authorMatthias Klose <doko@debian.org>
Mon, 5 Oct 2020 20:56:51 +0000 (21:56 +0100)
committerMatthias Klose <doko@debian.org>
Mon, 5 Oct 2020 20:56:51 +0000 (21:56 +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 77f91e72b19190a66caa65be4121bff8a7b80642..8bfb70813f9c38c8e4996cc413f327d89d28dbc3 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)