From cf10f071246a8799d0e1fb6521902c168ce4ed6b Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 7 Feb 2018 06:37:21 +0100 Subject: [PATCH] Add --no-shared-compilation to cc.sh --- cc.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cc.sh b/cc.sh index 06af23354..0dcd55245 100755 --- a/cc.sh +++ b/cc.sh @@ -8,6 +8,7 @@ CONFIGURATION="Release" OUT="out/source" CLEAN=0 +SHARED_COMPILATION=1 TEST=1 cd "$(dirname "$(readlink -f "$0")")" @@ -17,8 +18,9 @@ for ARG in "$@"; do release|Release) CONFIGURATION="Release" ;; debug|Debug) CONFIGURATION="Debug" ;; --clean) CLEAN=1 ;; + --no-shared-compilation) SHARED_COMPILATION=0 ;; --no-test) TEST=0 ;; - *) echo "Usage: $0 [--clean] [--no-test] [debug/release]"; exit 1 + *) echo "Usage: $0 [--clean] [--no-shared-compilation] [--no-test] [debug/release]"; exit 1 esac done @@ -41,7 +43,11 @@ if [[ ! -f "$SOLUTION" ]]; then fi SETUP_FLAGS=(-c "$CONFIGURATION" -o "$OUT") -BUILD_FLAGS=(--no-restore /nologo /p:LinkDuringPublish=false) +BUILD_FLAGS=(--no-restore '/nologo' '/p:LinkDuringPublish=false') + +if [[ "$SHARED_COMPILATION" -eq 0 ]]; then + BUILD_FLAGS+=('/p:UseSharedCompilation=false') +fi if [[ "$TEST" -eq 1 ]]; then if [[ "$CLEAN" -eq 1 ]]; then