Skip to content

Commit a06b5fd

Browse files
committed
Pass thru command line args to RepoTasks build
1 parent caa429c commit a06b5fd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

eng/build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ if ($BuildManaged -or ($All -and (-not $NoBuildManaged))) {
250250
}
251251
}
252252

253+
$CommandLineArguments = $MSBuildArguments
254+
253255
if ($NoBuildDeps) { $MSBuildArguments += "/p:BuildProjectReferences=false" }
254256

255257
$RunBuild = if ($NoBuild) { $false } else { $true }
@@ -478,7 +480,8 @@ try {
478480
/p:Restore=$RunRestore `
479481
/p:Build=true `
480482
/clp:NoSummary `
481-
@ToolsetBuildArguments
483+
@ToolsetBuildArguments `
484+
@CommandLineArguments
482485
}
483486

484487
if (-not $OnlyBuildRepoTasks) {

eng/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ while [[ $# -gt 0 ]]; do
249249
shift
250250
done
251251

252+
commandline_args=$msbuild_args
253+
252254
if [ "$build_all" = true ]; then
253255
msbuild_args[${#msbuild_args[*]}]="-p:BuildAllProjects=true"
254256
fi
@@ -396,7 +398,8 @@ if [ "$build_repo_tasks" = true ]; then
396398
-p:Restore=$run_restore \
397399
-p:Build=true \
398400
-clp:NoSummary \
399-
${toolset_build_args[@]+"${toolset_build_args[@]}"}
401+
${toolset_build_args[@]+"${toolset_build_args[@]}"} \
402+
${commandline_args[@]+"${commandline_args[@]}"}
400403
fi
401404

402405
if [ "$only_build_repo_tasks" != true ]; then

0 commit comments

Comments
 (0)