This is an automated email from the ASF dual-hosted git repository. yangzhg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new cc9cfeb (build) teach build.sh --clean work correctly (#7949) cc9cfeb is described below commit cc9cfebbff9f911da58b82eb0101c21b63ca0939 Author: dataroaring <98214048+dataroar...@users.noreply.github.com> AuthorDate: Tue Feb 8 09:49:39 2022 +0800 (build) teach build.sh --clean work correctly (#7949) CMAKE_BUILD_DIR is set while building be. "build.sh --clean" just cleans and exits, however clean_be does not works without CMAKE_BUILD_DIR set. This patch set CMAKE_BUILD_DIR in clean_be to teach build.sh --clean work correctly. --- build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sh b/build.sh index ad13991..ab4c809 100755 --- a/build.sh +++ b/build.sh @@ -76,6 +76,12 @@ clean_gensrc() { clean_be() { pushd ${DORIS_HOME} + + # "build.sh --clean" just cleans and exits, however CMAKE_BUILD_DIR is set + # while building be. + CMAKE_BUILD_TYPE=${BUILD_TYPE:-Release} + CMAKE_BUILD_DIR=${DORIS_HOME}/be/build_${CMAKE_BUILD_TYPE} + rm -rf $CMAKE_BUILD_DIR rm -rf ${DORIS_HOME}/be/output/ popd --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org