From 887e9a1e17fdee4b32955eb1fbfdac2ca3f38478 Mon Sep 17 00:00:00 2001 From: psi29a Date: Thu, 16 Sep 2021 16:07:44 +0000 Subject: [PATCH] use -C --- CI/before_script.msvc.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CI/before_script.msvc.sh b/CI/before_script.msvc.sh index 4b8335c1ab..9f026c4e35 100644 --- a/CI/before_script.msvc.sh +++ b/CI/before_script.msvc.sh @@ -101,8 +101,8 @@ while [ $# -gt 0 ]; do e ) SKIP_EXTRACT=true ;; - f ) - USE_CCACHE=TRUE ;; + C ) + USE_CCACHE=true ;; k ) KEEP=true ;; @@ -148,12 +148,12 @@ Options: Set the configuration, can also be set with environment variable CONFIGURATION. For mutli-config generators, this is ignored, and all configurations are set up. For single-config generators, several configurations can be set up at once by specifying -c multiple times. + -C + Use ccache. -d Skip checking the downloads. -e Skip extracting dependencies. - -f - Use ccache -h Show this message. -k @@ -509,7 +509,8 @@ if ! [ -z $UNITY_BUILD ]; then fi if ! [ -z $USE_CCACHE ]; then - add_cmake_opts " -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + add_cmake_opts "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" +fi echo echo "==================================="