File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ source_dir=${1}
2020enable_sanitizer=${2:- false}
2121check_clang_tidy=${3:- false}
2222build_type=${4:- Debug}
23- build_dir=${1 } /build
23+ build_dir=" ${source_dir } /build"
2424
2525# Display ccache status if available
2626if command -v ccache & > /dev/null; then
3131 echo " === ccache not found, compiling without cache acceleration ==="
3232fi
3333
34- mkdir ${build_dir}
35- pushd ${build_dir}
34+ mkdir -p " ${build_dir} "
35+ pushd " ${build_dir} "
3636
3737ENABLE_LUMINA=" ON"
3838ENABLE_LANCE=" ON"
@@ -62,9 +62,9 @@ if [[ "${enable_sanitizer}" == "true" ]]; then
6262 )
6363fi
6464
65- cmake " ${CMAKE_ARGS[@]} " ${source_dir}
66- cmake --build . -- -j$( nproc)
67- ctest --output-on-failure -j $( nproc)
65+ cmake " ${CMAKE_ARGS[@]} " " ${source_dir} "
66+ cmake --build . -- -j " $( nproc) "
67+ ctest --output-on-failure -j " $( nproc) "
6868
6969if [[ " ${check_clang_tidy} " == " true" ]]; then
7070 cmake --build . --target check-clang-tidy
7878
7979popd
8080
81- rm -rf ${build_dir}
81+ rm -rf " ${build_dir} "
You can’t perform that action at this time.
0 commit comments