Accept a locally existing build-directory (#1476)
A message is emitted and there the '--force' is still honored. However, if people want to reuse the build-directory to reduce recompile-times, this give them the rope they ask for.
This commit is contained in:
parent
b80023fd41
commit
5f23114cab
4
build.sh
4
build.sh
@ -178,11 +178,11 @@ main() {
|
|||||||
msg "Removing existing build dir (-f)"
|
msg "Removing existing build dir (-f)"
|
||||||
rm -rf ./build >/dev/null || msg_err "Failed to remove existing build dir"
|
rm -rf ./build >/dev/null || msg_err "Failed to remove existing build dir"
|
||||||
else
|
else
|
||||||
msg_err "A build dir already exists (pass -f to replace)"
|
msg "A build dir already exists (pass -f to replace)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir ./build || msg_err "Failed to create build dir"
|
mkdir -p ./build || msg_err "Failed to create build dir"
|
||||||
cd ./build || msg_err "Failed to enter build dir"
|
cd ./build || msg_err "Failed to enter build dir"
|
||||||
|
|
||||||
set_build_opts
|
set_build_opts
|
||||||
|
Loading…
Reference in New Issue
Block a user