Add --no-analysis to cc.sh

This commit is contained in:
JustArchi 2021-05-08 00:17:27 +02:00
parent daf37c723c
commit 5ea6a167e4

9
cc.sh
View file

@ -12,6 +12,7 @@ OUT="out"
OUT_ASF="${OUT}/result" OUT_ASF="${OUT}/result"
OUT_STD="${OUT}/${STEAM_TOKEN_DUMPER_NAME}" OUT_STD="${OUT}/${STEAM_TOKEN_DUMPER_NAME}"
ANALYSIS=1
ASF_UI=1 ASF_UI=1
CLEAN=0 CLEAN=0
PULL=1 PULL=1
@ -19,7 +20,7 @@ SHARED_COMPILATION=1
TEST=1 TEST=1
PRINT_USAGE() { PRINT_USAGE() {
echo "Usage: $0 [--clean] [--no-asf-ui] [--no-pull] [--no-shared-compilation] [--no-test] [debug/release]" echo "Usage: $0 [--clean] [--no-analysis] [--no-asf-ui] [--no-pull] [--no-shared-compilation] [--no-test] [debug/release]"
} }
cd "$(dirname "$(readlink -f "$0")")" cd "$(dirname "$(readlink -f "$0")")"
@ -28,6 +29,8 @@ for ARG in "$@"; do
case "$ARG" in case "$ARG" in
debug|Debug) CONFIGURATION="Debug" ;; debug|Debug) CONFIGURATION="Debug" ;;
release|Release) CONFIGURATION="Release" ;; release|Release) CONFIGURATION="Release" ;;
--analysis) ANALYSIS=1 ;;
--no-analysis) ANALYSIS=0 ;;
--asf-ui) ASF_UI=1 ;; --asf-ui) ASF_UI=1 ;;
--no-asf-ui) ASF_UI=0 ;; --no-asf-ui) ASF_UI=0 ;;
--clean) CLEAN=1 ;; --clean) CLEAN=1 ;;
@ -101,6 +104,10 @@ fi
DOTNET_FLAGS="-c $CONFIGURATION -f $TARGET_FRAMEWORK -p:SelfContained=false -p:UseAppHost=false -r ${os_type}-${cpu_architecture} --nologo" DOTNET_FLAGS="-c $CONFIGURATION -f $TARGET_FRAMEWORK -p:SelfContained=false -p:UseAppHost=false -r ${os_type}-${cpu_architecture} --nologo"
if [ "$ANALYSIS" -eq 0 ]; then
DOTNET_FLAGS="$DOTNET_FLAGS -p:AnalysisMode=AllDisabledByDefault"
fi
if [ "$SHARED_COMPILATION" -eq 0 ]; then if [ "$SHARED_COMPILATION" -eq 0 ]; then
DOTNET_FLAGS="$DOTNET_FLAGS -p:UseSharedCompilation=false" DOTNET_FLAGS="$DOTNET_FLAGS -p:UseSharedCompilation=false"
fi fi