Skip to content

Commit 5d2b7f6

Browse files
authored
Add a top-level --with-system-libs arg to build.sh (#42120)
1 parent 25cdd7a commit 5d2b7f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/SourceBuild/content/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ usage()
1414
echo " --configuration <value> Build configuration: 'Debug' or 'Release' (short: -c)"
1515
echo " --rid, --target-rid <value> Overrides the rid that is produced by the build. e.g. alpine.3.18-arm64, fedora.37-x64, freebsd.13-arm64, ubuntu.19.10-x64"
1616
echo " --verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] (short: -v)"
17+
echo " --with-system-libs <libs> Use system versions of these libraries. Combine with a plus. eg brotli+libunwind+rapidjson+zlib"
1718
echo ""
1819

1920
echo "Actions:"
@@ -89,6 +90,7 @@ exclude_ci_binary_log=false
8990
prepare_machine=false
9091
use_dev_versioning=false
9192
target_rid=
93+
system_libs=
9294

9395
properties=()
9496
while [[ $# > 0 ]]; do
@@ -106,6 +108,10 @@ while [[ $# > 0 ]]; do
106108
target_rid=$2
107109
shift
108110
;;
111+
-with-system-libs)
112+
system_libs=$2
113+
shift
114+
;;
109115
-verbosity|-v)
110116
verbosity=$2
111117
shift
@@ -291,6 +297,9 @@ initDistroRidGlobal "$os" "$arch" ""
291297
if [[ -n "$target_rid" ]]; then
292298
properties+=( "/p:TargetRid=$target_rid" )
293299
fi
300+
if [[ -n "$system_libs" ]]; then
301+
properties+=( "/p:UseSystemLibs=$system_libs" )
302+
fi
294303

295304
# Source-only settings
296305
if [[ "$sourceOnly" == "true" ]]; then

0 commit comments

Comments
 (0)