mirror of https://git.tukaani.org/xz.git
CI: Allow disabling the sandbox in ci_build.sh.
This commit is contained in:
parent
91c435cf1c
commit
b1408987ea
|
@ -20,7 +20,7 @@ USAGE="Usage: $0
|
||||||
-a [autogen flags]
|
-a [autogen flags]
|
||||||
-b [autotools|cmake]
|
-b [autotools|cmake]
|
||||||
-c [crc32|crc64|sha256]
|
-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]
|
-f [CFLAGS]
|
||||||
-l [destdir]
|
-l [destdir]
|
||||||
-n [ARTIFACTS_DIR_NAME]
|
-n [ARTIFACTS_DIR_NAME]
|
||||||
|
@ -44,6 +44,7 @@ NATIVE_LANG_SUPPORT="y"
|
||||||
SMALL="n"
|
SMALL="n"
|
||||||
IFUNC="y"
|
IFUNC="y"
|
||||||
CLMUL="y"
|
CLMUL="y"
|
||||||
|
SANDBOX="y"
|
||||||
SRC_DIR="$ABS_DIR/../"
|
SRC_DIR="$ABS_DIR/../"
|
||||||
DEST_DIR="$SRC_DIR/../xz_build"
|
DEST_DIR="$SRC_DIR/../xz_build"
|
||||||
PHASE="all"
|
PHASE="all"
|
||||||
|
@ -89,6 +90,7 @@ while getopts a:b:c:d:l:n:s:p:f:h opt; do
|
||||||
small) SMALL="y";;
|
small) SMALL="y";;
|
||||||
ifunc) IFUNC="n";;
|
ifunc) IFUNC="n";;
|
||||||
clmul) CLMUL="n";;
|
clmul) CLMUL="n";;
|
||||||
|
sandbox) SANDBOX="n";;
|
||||||
*) echo "Invalid disable value: $disable_arg"; exit 1 ;;
|
*) echo "Invalid disable value: $disable_arg"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -208,6 +210,7 @@ then
|
||||||
add_extra_option "$SMALL" "--enable-small" ""
|
add_extra_option "$SMALL" "--enable-small" ""
|
||||||
add_extra_option "$IFUNC" "" "--disable-ifunc"
|
add_extra_option "$IFUNC" "" "--disable-ifunc"
|
||||||
add_extra_option "$CLMUL" "" "--disable-clmul-crc"
|
add_extra_option "$CLMUL" "" "--disable-clmul-crc"
|
||||||
|
add_extra_option "$SANDBOX" "" "--enable-sandbox=no"
|
||||||
|
|
||||||
# Run configure script
|
# Run configure script
|
||||||
"$SRC_DIR"/configure --enable-werror --enable-checks="$CHECK_TYPE" $EXTRA_OPTIONS --config-cache
|
"$SRC_DIR"/configure --enable-werror --enable-checks="$CHECK_TYPE" $EXTRA_OPTIONS --config-cache
|
||||||
|
|
Loading…
Reference in New Issue