From 272efe34d4f445c176dfe96223da4541cc2d3f7b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 5 Dec 2024 20:16:58 +0100 Subject: [PATCH] mkosi: Make sure the /coverage directory exists --- mkosi.coverage/mkosi.postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkosi.coverage/mkosi.postinst b/mkosi.coverage/mkosi.postinst index ccb153f76d8..5b1002212ee 100755 --- a/mkosi.coverage/mkosi.postinst +++ b/mkosi.coverage/mkosi.postinst @@ -7,6 +7,8 @@ set -e rm -f "$BUILDROOT"/coverage/*.gcda ) +mkdir -p "$BUILDROOT/coverage" + # When using -fprofile-dir=, GCC creates all gcda files under the given directory at the same location as the # gcno file in the build directory, but with each '/' replaced with '#'. LLVM creates each gcda file under # the given directory without replacing each '/' with '#'. Because we want all processes to be able to write -- 2.47.3