mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-14 15:48:11 +03:00
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:
parent
c52532efce
commit
fc18afd71e
@ -154,6 +154,9 @@ function configure() {
|
|||||||
if [[ -n "$arg_docker_opts" ]]; then
|
if [[ -n "$arg_docker_opts" ]]; then
|
||||||
echo "DOCKER_OPTS := $arg_docker_opts"
|
echo "DOCKER_OPTS := $arg_docker_opts"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "$arg_enable_ccache" ]]; then
|
||||||
|
echo "ENABLE_CCACHE := 1"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "AFDKO_VERB := $AFDKO_VERB"
|
echo "AFDKO_VERB := $AFDKO_VERB"
|
||||||
|
|
||||||
@ -176,6 +179,7 @@ arg_no_protonsdk=""
|
|||||||
arg_build_name=""
|
arg_build_name=""
|
||||||
arg_container_engine="docker"
|
arg_container_engine="docker"
|
||||||
arg_docker_opts=""
|
arg_docker_opts=""
|
||||||
|
arg_enable_ccache=""
|
||||||
arg_help=""
|
arg_help=""
|
||||||
invalid_args=""
|
invalid_args=""
|
||||||
function parse_args() {
|
function parse_args() {
|
||||||
@ -218,6 +222,8 @@ function parse_args() {
|
|||||||
elif [[ $arg = --docker-opts ]]; then
|
elif [[ $arg = --docker-opts ]]; then
|
||||||
arg_docker_opts="$val"
|
arg_docker_opts="$val"
|
||||||
val_used=1
|
val_used=1
|
||||||
|
elif [[ $arg = --enable-ccache ]]; then
|
||||||
|
arg_enable_ccache="1"
|
||||||
elif [[ $arg = --proton-sdk-image ]]; then
|
elif [[ $arg = --proton-sdk-image ]]; then
|
||||||
val_used=1
|
val_used=1
|
||||||
arg_protonsdk_image="$val"
|
arg_protonsdk_image="$val"
|
||||||
@ -274,6 +280,8 @@ usage() {
|
|||||||
"$1" ""
|
"$1" ""
|
||||||
"$1" " --docker-opts='<options>' Extra options to pass to Docker when invoking the runtime."
|
"$1" " --docker-opts='<options>' Extra options to pass to Docker when invoking the runtime."
|
||||||
"$1" ""
|
"$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" " Steam Runtime"
|
||||||
"$1" " Proton builds that are to be installed & run under the steam client must be built with"
|
"$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."
|
"$1" " the Steam Runtime SDK to ensure compatibility. See README.md for more information."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user