Skip to content

Commit

Permalink
[Enhancement] A build machine that supports the AVX2 instruction set …
Browse files Browse the repository at this point in the history
…compiles a package without the AVX2 instruction set. (backport #51673) (#51687)

Signed-off-by: Kevin Xiaohua Cai <[email protected]>
Co-authored-by: wangfei <[email protected]>
Co-authored-by: Kevin Xiaohua Cai <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent 905db45 commit 37d1a1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Usage: $0 <options>
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
Expand Down Expand Up @@ -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' \
-- "$@")

Expand Down Expand Up @@ -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 ;;
Expand Down

0 comments on commit 37d1a1d

Please sign in to comment.