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:
Matthias Viehweger 2018-10-16 18:14:03 +02:00 committed by Patrick Ziegler
parent b80023fd41
commit 5f23114cab
1 changed files with 2 additions and 2 deletions

View File

@ -178,11 +178,11 @@ main() {
msg "Removing existing build dir (-f)"
rm -rf ./build >/dev/null || msg_err "Failed to remove existing build dir"
else
msg_err "A build dir already exists (pass -f to replace)"
msg "A build dir already exists (pass -f to replace)"
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"
set_build_opts