From 37d1a1db67da564f1b6d217a58f442cd2145a2cf Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 03:06:59 +0000 Subject: [PATCH] [Enhancement] A build machine that supports the AVX2 instruction set compiles a package without the AVX2 instruction set. (backport #51673) (#51687) Signed-off-by: Kevin Xiaohua Cai Co-authored-by: wangfei Co-authored-by: Kevin Xiaohua Cai --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 090825cbdbbe0..411caa36e0396 100755 --- a/build.sh +++ b/build.sh @@ -99,6 +99,7 @@ Usage: $0 build with compressing debug symbol. (default: $WITH_COMPRESS) --with-source-file-relative-path {ON|OFF} build source file with relative path. (default: $WITH_RELATIVE_SRC_PATH) + --without-avx2 build Backend without avx2(instruction) -h,--help Show this help message Eg. $0 build all @@ -131,6 +132,7 @@ OPTS=$(getopt \ -l 'enable-shared-data' \ -l 'with-compress-debug-symbol:' \ -l 'with-source-file-relative-path:' \ + -l 'without-avx2' \ -l 'help' \ -- "$@") @@ -236,6 +238,7 @@ else --with-clang-tidy) WITH_CLANG_TIDY=ON; shift ;; --without-java-ext) BUILD_JAVA_EXT=OFF; shift ;; --without-starcache) WITH_STARCACHE=OFF; shift ;; + --without-avx2) USE_AVX2=OFF; shift ;; --with-compress-debug-symbol) WITH_COMPRESS=$2 ; shift 2 ;; --with-source-file-relative-path) WITH_RELATIVE_SRC_PATH=$2 ; shift 2 ;; -h) HELP=1; shift ;;