This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new cbe12cfb69 [chore](build) Support specifying output path #19669
cbe12cfb69 is described below
commit cbe12cfb69bfd0646ace0570a50ee466a3ddafc7
Author: zclllyybb <[email protected]>
AuthorDate: Fri May 19 09:22:36 2023 +0800
[chore](build) Support specifying output path #19669
now we could
./build.sh --be --fe --output PATH_TO_BINARY_YOU_LIKE
did not modify the default value
---
build.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index 222d50c3b4..0640c13b23 100755
--- a/build.sh
+++ b/build.sh
@@ -48,6 +48,7 @@ Usage: $0 <options>
--hive-udf build Hive UDF library for Spark Load. Default ON.
--java-udf build Java UDF. Default ON.
--clean clean and build target
+ --output specify the output directory
-j build Backend parallel
Environment variables:
@@ -65,6 +66,7 @@ Usage: $0 <options>
$0 --broker build Broker
$0 --be --fe build Backend, Frontend, Spark Dpp
application and Java UDF library
$0 --be --coverage build Backend with coverage enabled
+ $0 --be --output PATH build Backend, the result will be
output to PATH(relative paths are available)
USE_AVX2=0 $0 --be build Backend and not using AVX2
instruction.
USE_AVX2=0 STRIP_DEBUG_INFO=ON $0 build all and not using AVX2
instruction, and strip the debug info for Backend
@@ -121,6 +123,7 @@ if ! OPTS="$(getopt \
-l 'clean' \
-l 'coverage' \
-l 'help' \
+ -l 'output:' \
-o 'hj:' \
-- "$@")"; then
usage
@@ -213,6 +216,10 @@ else
PARAMETER_FLAG=1
shift 2
;;
+ --output)
+ DORIS_OUTPUT="$2"
+ shift 2
+ ;;
--)
shift
break
@@ -538,7 +545,8 @@ if [[ "${FE_MODULES}" != '' ]]; then
fi
# Clean and prepare output dir
-DORIS_OUTPUT=${DORIS_HOME}/output/
+DORIS_OUTPUT=${DORIS_OUTPUT:="${DORIS_HOME}/output/"}
+echo "OUTPUT DIR=${DORIS_OUTPUT}"
mkdir -p "${DORIS_OUTPUT}"
# Copy Frontend and Backend
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]