提交 8b0e228f 编写于 作者: S Shyam N

Add a -official switch to build.ps1.

Enable support for doing official builds via build.ps1.
上级 5dc90e31
...@@ -3,6 +3,7 @@ param ( ...@@ -3,6 +3,7 @@ param (
# Configuration # Configuration
[switch]$restore = $false, [switch]$restore = $false,
[switch]$release = $false, [switch]$release = $false,
[switch]$official = $false,
[switch]$cibuild = $false, [switch]$cibuild = $false,
[switch]$build = $false, [switch]$build = $false,
[switch]$bootstrap = $false, [switch]$bootstrap = $false,
...@@ -29,6 +30,7 @@ function Print-Usage() { ...@@ -29,6 +30,7 @@ function Print-Usage() {
Write-Host " -release Perform release build (default is debug)" Write-Host " -release Perform release build (default is debug)"
Write-Host " -restore Restore packages" Write-Host " -restore Restore packages"
Write-Host " -build Build the Roslyn source" Write-Host " -build Build the Roslyn source"
Write-Host " -official Perform an official build"
Write-Host " -bootstrap Build using a bootstrap Roslyn" Write-Host " -bootstrap Build using a bootstrap Roslyn"
Write-Host " -msbuildDir MSBuild to use for operations" Write-Host " -msbuildDir MSBuild to use for operations"
Write-Host "" Write-Host ""
...@@ -87,6 +89,10 @@ function Run-MSBuild([string]$buildArgs = "", [string]$logFile = "") { ...@@ -87,6 +89,10 @@ function Run-MSBuild([string]$buildArgs = "", [string]$logFile = "") {
$args += " /p:PathMap=`"$($repoDir)=q:\roslyn`" /p:Feature=pdb-path-determinism" $args += " /p:PathMap=`"$($repoDir)=q:\roslyn`" /p:Feature=pdb-path-determinism"
} }
if ($official) {
$args += " /p:OfficialBuild=true"
}
$args += " $buildArgs" $args += " $buildArgs"
Exec-Command $msbuild $args Exec-Command $msbuild $args
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册