Minor fix in builder script.

Delete build directories prior to build in build_project().

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2021-12-19 12:04:18 +00:00
parent a33695cd55
commit 21ccbcb120
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 5 additions and 2 deletions

View File

@ -2671,9 +2671,12 @@ build_project() {
lto=OFF
fi
rm -rf release debug
mkdir -p release debug
# Release build.
puts "${NL}Building Release...${NL}${NL}"
mkdir release && cd release
cd release
echo_eval_run cmake "'$CHECKOUT'" $CMAKE_REQUIRED_ARGS -DVBAM_STATIC=ON -DENABLE_LTO=${lto} -DUPSTREAM_RELEASE=TRUE $CMAKE_ARGS $PROJECT_ARGS -G Ninja $@
echo_run ninja -j$NUM_CPUS -v
dist_post_build project
@ -2681,7 +2684,7 @@ build_project() {
# Debug build.
puts "${NL}Building Debug...${NL}${NL}"
mkdir debug && cd debug
cd debug
echo_eval_run cmake "'$CHECKOUT'" $CMAKE_REQUIRED_ARGS -DVBAM_STATIC=ON -DENABLE_LTO=${lto} -DUPSTREAM_RELEASE=TRUE $CMAKE_ARGS $PROJECT_ARGS -DCMAKE_BUILD_TYPE=Debug -G Ninja $@
echo_run ninja -j$NUM_CPUS -v
dist_post_build project