From ab00ba1039f524f454050c4988f7d35de72a9d99 Mon Sep 17 00:00:00 2001 From: "Lvyinrun (Lionel)" Date: Thu, 17 Oct 2024 14:32:37 +0800 Subject: [PATCH] Enable specify build directory in build.sh by "-d dir" --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index d6ef83596bde..db249550491d 100755 --- a/build.sh +++ b/build.sh @@ -58,6 +58,7 @@ Options: -h Display this help message. -i Install the build (default: $do_install). -I name Specify install directory name (default: "$install_dir_name"). + -d dir Specify the build directory (default: "$build_dir_name"). -j N Allow N jobs at once (default: $threads). -o Enable LLVM_INSTALL_TOOLCHAIN_ONLY=ON. -r Delete $install_prefix and perform a clean build (default: incremental). @@ -71,7 +72,7 @@ EOF # Process command-line options. Remember the options for passing to the # containerized build script. -while getopts :aAb:ceEhiI:j:orstvfX: optchr; do +while getopts :aAbd:ceEhiI:j:orstvfX: optchr; do case "$optchr" in a) enable_autotuner="0" @@ -96,6 +97,9 @@ while getopts :aAb:ceEhiI:j:orstvfX: optchr; do c) use_ccache="1" ;; + d) + build_prefix="$OPTARG" + ;; f) enable_classic_flang="1" ;; -- Gitee