File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ Usage: $0 <options>
75
75
clean_gensrc () {
76
76
pushd " ${DORIS_HOME} /gensrc"
77
77
make clean
78
+ rm -rf " ${DORIS_HOME} /gensrc/build"
78
79
rm -rf " ${DORIS_HOME} /fe/fe-common/target"
79
80
rm -rf " ${DORIS_HOME} /fe/fe-core/target"
80
81
popd
@@ -401,7 +402,7 @@ echo "Get params:
401
402
if [[ " ${CLEAN} " -eq 1 ]]; then
402
403
clean_gensrc
403
404
fi
404
- " ${DORIS_HOME} " /generated-source.sh
405
+ " ${DORIS_HOME} " /generated-source.sh noclean
405
406
406
407
# Assesmble FE modules
407
408
FE_MODULES=' '
Original file line number Diff line number Diff line change @@ -30,7 +30,15 @@ export DORIS_HOME="${ROOT}"
30
30
31
31
echo " Build generated code"
32
32
cd " ${DORIS_HOME} /gensrc"
33
- rm -rf " ${DORIS_HOME} /gensrc/build"
33
+
34
+ # if calling from build.sh, no need to clean build/ dir.
35
+ # it will be removed by using `build.sh --clean`.
36
+ # when run this script along, it will always remove the build/ dir.
37
+ if [[ " $# " == 0 ]]; then
38
+ echo " rm -rf ${DORIS_HOME} /gensrc/build"
39
+ rm -rf " ${DORIS_HOME} /gensrc/build"
40
+ fi
41
+
34
42
# DO NOT using parallel make(-j) for gensrc
35
43
make
36
44
rm -rf " ${DORIS_HOME} /fe/fe-common/src/main/java/org/apache/doris/thrift ${DORIS_HOME} /fe/fe-common/src/main/java/org/apache/parquet"
You can’t perform that action at this time.
0 commit comments