mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Add --no-analysis to cc.sh
This commit is contained in:
parent
daf37c723c
commit
5ea6a167e4
1 changed files with 8 additions and 1 deletions
9
cc.sh
9
cc.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue