configure.sh: Expose --enable-ccache.

Until now the option had to be added by hand to the Makefile or
specified each `make` invocation.
This commit is contained in:
Arkadiusz Hiler 2021-06-14 16:21:36 +03:00 committed by Andrew Eikum
parent c52532efce
commit fc18afd71e

View file

@ -154,6 +154,9 @@ function configure() {
if [[ -n "$arg_docker_opts" ]]; then
echo "DOCKER_OPTS := $arg_docker_opts"
fi
if [[ -n "$arg_enable_ccache" ]]; then
echo "ENABLE_CCACHE := 1"
fi
echo "AFDKO_VERB := $AFDKO_VERB"
@ -176,6 +179,7 @@ arg_no_protonsdk=""
arg_build_name=""
arg_container_engine="docker"
arg_docker_opts=""
arg_enable_ccache=""
arg_help=""
invalid_args=""
function parse_args() {
@ -218,6 +222,8 @@ function parse_args() {
elif [[ $arg = --docker-opts ]]; then
arg_docker_opts="$val"
val_used=1
elif [[ $arg = --enable-ccache ]]; then
arg_enable_ccache="1"
elif [[ $arg = --proton-sdk-image ]]; then
val_used=1
arg_protonsdk_image="$val"
@ -274,6 +280,8 @@ usage() {
"$1" ""
"$1" " --docker-opts='<options>' Extra options to pass to Docker when invoking the runtime."
"$1" ""
"$1" " --enable-ccache Mount \$CCACHE_DIR or \$HOME/.ccache inside of the container and use ccache for the build."
"$1" ""
"$1" " Steam Runtime"
"$1" " Proton builds that are to be installed & run under the steam client must be built with"
"$1" " the Steam Runtime SDK to ensure compatibility. See README.md for more information."