]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Make sure the /coverage directory exists
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Dec 2024 19:16:58 +0000 (20:16 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 5 Dec 2024 21:03:07 +0000 (22:03 +0100)
mkosi.coverage/mkosi.postinst

index ccb153f76d8473127f40b9050981a25198fdf5b5..5b1002212ee1a9149286545fd6158d983a60cb7b 100755 (executable)
@@ -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