mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-15 22:10:30 +00:00
Add --no-link-during-publish to cc.sh
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user