Skip to content

Commit e56ebd1

Browse files
Make build.ps1 default to the OS architecture (#104792)
* Make build.ps1 default to the OS architecture * Make help message consistent with build.sh
1 parent c3b4850 commit e56ebd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Param(
1111
[switch]$coverage,
1212
[string]$testscope,
1313
[switch]$testnobuild,
14-
[ValidateSet("x86","x64","arm","arm64","wasm")][string[]][Alias('a')]$arch = @([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant()),
14+
[ValidateSet("x86","x64","arm","arm64","wasm")][string[]][Alias('a')]$arch = @([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant()),
1515
[switch]$cross = $false,
1616
[string][Alias('s')]$subset,
1717
[ValidateSet("Debug","Release","Checked")][string][Alias('rc')]$runtimeConfiguration,
@@ -31,7 +31,7 @@ function Get-Help() {
3131
Write-Host "Common settings:"
3232
Write-Host " -arch (-a) Target platform: x86, x64, arm, arm64, or wasm."
3333
Write-Host " Pass a comma-separated list to build for multiple architectures."
34-
Write-Host (" [Default: {0} (Depends on your console's architecture.)]" -f [System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())
34+
Write-Host " [Default: Your machine's architecture.]"
3535
Write-Host " -binaryLog (-bl) Output binary log."
3636
Write-Host " -configuration (-c) Build configuration: Debug, Release or Checked."
3737
Write-Host " Checked is exclusive to the CLR subset. It is the same as Debug, except code is"

0 commit comments

Comments
 (0)