From aea41c2ffa79ed3bb009fc66fc9edce10ba78519 Mon Sep 17 00:00:00 2001 From: carlvinhust2012 Date: Mon, 11 Jul 2022 23:23:45 +0800 Subject: [PATCH] support different python version in build-support scripts (#10378) Co-authored-by: hucheng01 --- build-support/check-format.sh | 3 +-- build-support/clang-format.sh | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/build-support/check-format.sh b/build-support/check-format.sh index f247fa01a3..f68a278985 100755 --- a/build-support/check-format.sh +++ b/build-support/check-format.sh @@ -30,5 +30,4 @@ export DORIS_HOME=`cd "${ROOT}/.."; pwd` CLANG_FORMAT=${CLANG_FORMAT_BINARY:=$(which clang-format)} -python3 ${DORIS_HOME}/build-support/run_clang_format.py "--clang-format-executable" "${CLANG_FORMAT}" "-r" "--style" "file" "--inplace" "false" "--extensions" "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx" "--exclude" "none" "be/src be/test" - +python ${DORIS_HOME}/build-support/run_clang_format.py "--clang-format-executable" "${CLANG_FORMAT}" "-r" "--style" "file" "--inplace" "false" "--extensions" "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx" "--exclude" "none" "be/src be/test" diff --git a/build-support/clang-format.sh b/build-support/clang-format.sh index 04464fc78e..005458372c 100755 --- a/build-support/clang-format.sh +++ b/build-support/clang-format.sh @@ -30,6 +30,4 @@ export DORIS_HOME=`cd "${ROOT}/.."; pwd` CLANG_FORMAT=${CLANG_FORMAT_BINARY:=$(which clang-format)} -python3 ${DORIS_HOME}/build-support/run_clang_format.py "--clang-format-executable" "${CLANG_FORMAT}" "-r" "--style" "file" "--inplace" "true" "--extensions" "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx" "--exclude" "none" "be/src be/test" - - +python ${DORIS_HOME}/build-support/run_clang_format.py "--clang-format-executable" "${CLANG_FORMAT}" "-r" "--style" "file" "--inplace" "true" "--extensions" "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx" "--exclude" "none" "be/src be/test"