diff options
author | Viktor Hofer <viktor.hofer@microsoft.com> | 2020-05-14 05:17:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 05:17:13 +0300 |
commit | 91c5fd0389a1369ce03db8b087a7f816b1a85f09 (patch) | |
tree | 594c5e211303ad5d2f0e01ec03046d58795bb793 /eng/build.ps1 | |
parent | 992470572b92ae0c55709ca2812d21cd2b880a72 (diff) |
Fix cross-compiling argument validation for Linux (#36368)
* Fix cross-compiling argument validation for Linux
https://github.com/dotnet/runtime/commit/7c66b6fb6fb00dd86d969ec622a9bb2830016375 added a ValidateSet for Windows_NT and Unix even though we don't support building for just "Unix" but for the more concrete OS which is "Linux".
* Update build.ps1
Diffstat (limited to 'eng/build.ps1')
-rw-r--r-- | eng/build.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eng/build.ps1 b/eng/build.ps1 index 6203fee4399..c5c0031b8d2 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -5,7 +5,7 @@ Param( [ValidateSet("Debug","Release","Checked")][string[]][Alias('c')]$configuration = @("Debug"), [string][Alias('f')]$framework, [string]$vs, - [ValidateSet("Windows_NT","Unix")][string]$os, + [ValidateSet("Windows_NT","Linux","OSX")][string]$os, [switch]$allconfigurations, [switch]$coverage, [string]$testscope, @@ -21,7 +21,7 @@ function Get-Help() { Write-Host "Common settings:" Write-Host " -subset Build a subset, print available subsets with -subset help (short: -s)" Write-Host " -vs Open the solution with VS for Test Explorer support. Path or solution name (ie -vs Microsoft.CSharp)" - Write-Host " -os Build operating system: Windows_NT or Unix" + Write-Host " -os Build operating system: Windows_NT, Linux or OSX" Write-Host " -arch Build platform: x86, x64, arm or arm64 (short: -a). Pass a comma-separated list to build for multiple architectures." Write-Host " -configuration Build configuration: Debug, Release or [CoreCLR]Checked (short: -c). Pass a comma-separated list to build for multiple configurations" Write-Host " -runtimeConfiguration Runtime build configuration: Debug, Release or [CoreCLR]Checked (short: -rc)" |