aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-10-24 00:15:39 +0800
committerJia Tan <jiat0218@gmail.com>2023-10-24 00:15:39 +0800
commitb1408987ea832e2760e478ae960a636df17a1363 (patch)
treeca08c605d851b8a9d6ab701981f2072d57011c2a /build-aux
parentCMake: Don't shadow the cache entry ENABLE_THREADS with a normal variable. (diff)
downloadxz-b1408987ea832e2760e478ae960a636df17a1363.tar.xz
CI: Allow disabling the sandbox in ci_build.sh.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/ci_build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build-aux/ci_build.sh b/build-aux/ci_build.sh
index 3cc014be..41cc2bc5 100755
--- a/build-aux/ci_build.sh
+++ b/build-aux/ci_build.sh
@@ -20,7 +20,7 @@ USAGE="Usage: $0
-a [autogen flags]
-b [autotools|cmake]
-c [crc32|crc64|sha256]
- -d [encoders|decoders|bcj|delta|threads|shared|nls|small|ifunc|clmul]
+ -d [encoders|decoders|bcj|delta|threads|shared|nls|small|ifunc|clmul|sandbox]
-f [CFLAGS]
-l [destdir]
-n [ARTIFACTS_DIR_NAME]
@@ -44,6 +44,7 @@ NATIVE_LANG_SUPPORT="y"
SMALL="n"
IFUNC="y"
CLMUL="y"
+SANDBOX="y"
SRC_DIR="$ABS_DIR/../"
DEST_DIR="$SRC_DIR/../xz_build"
PHASE="all"
@@ -89,6 +90,7 @@ while getopts a:b:c:d:l:n:s:p:f:h opt; do
small) SMALL="y";;
ifunc) IFUNC="n";;
clmul) CLMUL="n";;
+ sandbox) SANDBOX="n";;
*) echo "Invalid disable value: $disable_arg"; exit 1 ;;
esac
done
@@ -208,6 +210,7 @@ then
add_extra_option "$SMALL" "--enable-small" ""
add_extra_option "$IFUNC" "" "--disable-ifunc"
add_extra_option "$CLMUL" "" "--disable-clmul-crc"
+ add_extra_option "$SANDBOX" "" "--enable-sandbox=no"
# Run configure script
"$SRC_DIR"/configure --enable-werror --enable-checks="$CHECK_TYPE" $EXTRA_OPTIONS --config-cache