Files
MINGW-packages/mingw-w64-python/0088-build-Allow-profile-tests-failure.patch
2026-01-07 22:17:09 +01:00

32 lines
1.2 KiB
Diff

From 838987593def5fedc0077ab92f50f9b8c970b577 Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Wed, 3 Sep 2025 08:16:32 +0300
Subject: [PATCH 088/N] build: Allow profile tests failure
---
Makefile.pre.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.pre.in b/Makefile.pre.in
index e640e25..14bf765 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -768,7 +768,7 @@ profile-run-stamp:
$(MAKE) profile-gen-stamp
# Next, run the profile task to generate the profile information.
@ # FIXME: can't run for a cross build
- $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
+ $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
$(LLVM_PROF_MERGER)
# Remove profile generation binary since we are done with it.
$(MAKE) clean-retain-profile
@@ -817,7 +817,7 @@ profile-bolt-stamp: $(BUILDPYTHON)
mv "$${bin}.bolt_inst" "$${bin}"; \
done
# Run instrumented binaries to collect data.
- $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
+ $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
# Merge all the data files together.
for bin in $(BOLT_BINARIES); do \
@MERGE_FDATA@ $${bin}.*.fdata > "$${bin}.fdata"; \