We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f8ada commit 14b180dCopy full SHA for 14b180d
deps.windows/40-detours.ps1
@@ -40,7 +40,7 @@ function Build {
40
Target = $Target
41
}
42
43
- if ( $Target -eq 'x86' ) {
+ if ( $env:CI -ne $null -and $Target -eq 'x86' ) {
44
$Params += @{
45
HostArchitecture = $Target
46
utils.pwsh/Setup-Host.ps1
@@ -35,11 +35,4 @@ function Cleanup {
35
Log-Debug "Running Cleanup actions"
36
37
38
-function Get-HostArchitecture {
39
- $Host64Bit = [System.Environment]::Is64BitOperatingSystem
- $HostArchitecture = ('x86', 'x64')[$Host64Bit]
-
- return $HostArchitecture
-}
-$script:HostArchitecture = Get-HostArchitecture
+$script:HostArchitecture = ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture).ToString().ToLower()
0 commit comments