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:
parent
a33695cd55
commit
21ccbcb120
|
@ -2671,9 +2671,12 @@ build_project() {
|
||||||
lto=OFF
|
lto=OFF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -rf release debug
|
||||||
|
mkdir -p release debug
|
||||||
|
|
||||||
# Release build.
|
# Release build.
|
||||||
puts "${NL}[32mBuilding Release...[0m${NL}${NL}"
|
puts "${NL}[32mBuilding Release...[0m${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_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
|
echo_run ninja -j$NUM_CPUS -v
|
||||||
dist_post_build project
|
dist_post_build project
|
||||||
|
@ -2681,7 +2684,7 @@ build_project() {
|
||||||
|
|
||||||
# Debug build.
|
# Debug build.
|
||||||
puts "${NL}[32mBuilding Debug...[0m${NL}${NL}"
|
puts "${NL}[32mBuilding Debug...[0m${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_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
|
echo_run ninja -j$NUM_CPUS -v
|
||||||
dist_post_build project
|
dist_post_build project
|
||||||
|
|
Loading…
Reference in New Issue