mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Add --no-link-during-publish to cc.sh
This commit is contained in:
parent
faeb7458bc
commit
d8d004190c
1 changed files with 7 additions and 1 deletions
8
cc.sh
8
cc.sh
|
@ -8,6 +8,7 @@ CONFIGURATION="Release"
|
|||
OUT="out/source"
|
||||
|
||||
CLEAN=0
|
||||
LINK_DURING_PUBLISH=1
|
||||
PULL=1
|
||||
SHARED_COMPILATION=1
|
||||
TEST=1
|
||||
|
@ -19,10 +20,11 @@ for ARG in "$@"; do
|
|||
release|Release) CONFIGURATION="Release" ;;
|
||||
debug|Debug) CONFIGURATION="Debug" ;;
|
||||
--clean) CLEAN=1 ;;
|
||||
--no-link-during-publish) LINK_DURING_PUBLISH=0 ;;
|
||||
--no-pull) PULL=0 ;;
|
||||
--no-shared-compilation) SHARED_COMPILATION=0 ;;
|
||||
--no-test) TEST=0 ;;
|
||||
*) echo "Usage: $0 [--clean] [--no-pull] [--no-shared-compilation] [--no-test] [debug/release]"; exit 1
|
||||
*) echo "Usage: $0 [--clean] [--no-link-during-publish] [--no-pull] [--no-shared-compilation] [--no-test] [debug/release]"; exit 1
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -47,6 +49,10 @@ fi
|
|||
SETUP_FLAGS=(-c "$CONFIGURATION" -o "$OUT")
|
||||
BUILD_FLAGS=(--no-restore '/nologo')
|
||||
|
||||
if [[ "$LINK_DURING_PUBLISH" -eq 0 ]]; then
|
||||
BUILD_FLAGS+=('/p:LinkDuringPublish=false')
|
||||
fi
|
||||
|
||||
if [[ "$SHARED_COMPILATION" -eq 0 ]]; then
|
||||
BUILD_FLAGS+=('/p:UseSharedCompilation=false')
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue