Skip to content

Commit aac4ab9

Browse files
committed
Autodetect processor architecture used for tests
1 parent bde56ce commit aac4ab9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

make.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ Param(
55
[String] $target = "build",
66
[String] $configuration = "Release",
77
[String[]] $frameworks=@('net462','netcoreapp3.1','net6.0','net8.0'),
8-
[String] $platform = "x64",
8+
[String] $platform = [Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture,
99
[switch] $runIgnored,
1010
[int] $jobs = [System.Environment]::ProcessorCount
1111
)
1212

1313
$ErrorActionPreference="Continue"
14+
if (-not $platform) { $platform = "x64"; }
1415

1516
[int] $global:Result = 0
1617
[bool] $global:isUnix = [System.Environment]::OSVersion.Platform -eq [System.PlatformID]::Unix
@@ -62,8 +63,12 @@ function GenerateRunSettings([String] $framework, [String] $platform, [String] $
6263
[System.Xml.XmlDocument]$doc = New-Object System.Xml.XmlDocument
6364

6465
# <RunSettings>
66+
# <RunConfiguration>
67+
# <TargetPlatform>x64</TargetPlatform>
68+
# </RunConfiguration>
6569
# <TestRunParameters>
6670
# <Parameter name="FRAMEWORK" value="net462" />
71+
# <Parameter name="CONFIGURATION" value="Release" />
6772
# </TestRunParameters>
6873
# </RunSettings>
6974

0 commit comments

Comments
 (0)