From 8b0e228faf04061b086bb041cec64382611bf568 Mon Sep 17 00:00:00 2001 From: Shyam N Date: Sun, 25 Jun 2017 16:19:57 -0700 Subject: [PATCH] Add a -official switch to build.ps1. Enable support for doing official builds via build.ps1. --- build/scripts/build.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/scripts/build.ps1 b/build/scripts/build.ps1 index 49971915d69..b89dde167f8 100644 --- a/build/scripts/build.ps1 +++ b/build/scripts/build.ps1 @@ -3,6 +3,7 @@ param ( # Configuration [switch]$restore = $false, [switch]$release = $false, + [switch]$official = $false, [switch]$cibuild = $false, [switch]$build = $false, [switch]$bootstrap = $false, @@ -29,6 +30,7 @@ function Print-Usage() { Write-Host " -release Perform release build (default is debug)" Write-Host " -restore Restore packages" Write-Host " -build Build the Roslyn source" + Write-Host " -official Perform an official build" Write-Host " -bootstrap Build using a bootstrap Roslyn" Write-Host " -msbuildDir MSBuild to use for operations" Write-Host "" @@ -87,6 +89,10 @@ function Run-MSBuild([string]$buildArgs = "", [string]$logFile = "") { $args += " /p:PathMap=`"$($repoDir)=q:\roslyn`" /p:Feature=pdb-path-determinism" } + if ($official) { + $args += " /p:OfficialBuild=true" + } + $args += " $buildArgs" Exec-Command $msbuild $args } -- GitLab