Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build.psm1
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

#requires -Version 7.0

param(
# Skips a check that prevents building PowerShell on unsupported Linux distributions
[parameter(Mandatory = $false)][switch]$SkipLinuxDistroCheck = $false
)

. "$PSScriptRoot\tools\buildCommon\startNativeExecution.ps1"

# CI runs with PowerShell 5.0, so don't use features like ?: && ||
Set-StrictMode -Version 3.0

# On Unix paths is separated by colon
Expand Down Expand Up @@ -883,7 +884,7 @@ function New-PSOptions {
'Windows' {
# For x86 and x64 architectures, we use win7-x64 and win7-x86 RIDs.
# For arm and arm64 architectures, we use win-arm and win-arm64 RIDs.
$Platform = if ($Architecture[0] -eq 'x') { 'win7' } else { 'win' }
$Platform = $Architecture[0] -eq 'x' ? 'win7' : 'win'
$Runtime = "${Platform}-${Architecture}"
}

Expand Down