moveBuildTree: init

This commit is contained in:
Weijia Wang 2023-04-14 14:43:39 +03:00
parent 5de5912954
commit ddd8604a3b
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
prePhases+=" moveBuildDir"
moveBuildDir() {
mkdir -p $out/.build
cd $out/.build
}
postPhases+=" removeBuildDir"
removeBuildDir() {
rm -rf $out/.build
}

View File

@ -1173,6 +1173,10 @@ with pkgs;
name = "keep-build-tree-hook";
} ../build-support/setup-hooks/keep-build-tree.sh;
moveBuildTree = makeSetupHook {
name = "move-build-tree-hook";
} ../build-support/setup-hooks/move-build-tree.sh;
enableGCOVInstrumentation = makeSetupHook {
name = "enable-gcov-instrumentation-hook";
} ../build-support/setup-hooks/enable-coverage-instrumentation.sh;