moveBuildTree: init
This commit is contained in:
parent
5de5912954
commit
ddd8604a3b
2 changed files with 16 additions and 0 deletions
12
pkgs/build-support/setup-hooks/move-build-tree.sh
Normal file
12
pkgs/build-support/setup-hooks/move-build-tree.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
prePhases+=" moveBuildDir"
|
||||
|
||||
moveBuildDir() {
|
||||
mkdir -p $out/.build
|
||||
cd $out/.build
|
||||
}
|
||||
|
||||
postPhases+=" removeBuildDir"
|
||||
|
||||
removeBuildDir() {
|
||||
rm -rf $out/.build
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue