Skip to content

Commit

Permalink
Enable R2R on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Aug 17, 2020
1 parent 3852cb0 commit d73c0ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bootstrap.ps1
Original file line number Diff line number Diff line change
@@ -220,9 +220,13 @@ function Invoke-Build-Snap-Installer {
Get-Item $SnapInstallerDotnetBuildPublishDir | Remove-Item -Recurse -Force
}

# R2R is only available on Windows.
$PublishReadyToRun = ($Rid.StartsWith("win-")) -and ($Configuration -eq "Debug" ? "False" : "True")

Invoke-Command-Colored $CommandDotnet @(
"publish $SnapInstallerCsProj"
"/p:PublishTrimmed=" + ($Configuration -eq "Debug" ? "False" : "True")
"/p:PublishReadyToRun=" + $PublishReadyToRun
"/p:Version=$Version"
"/p:SnapRid=$Rid"
"--runtime $Rid"

0 comments on commit d73c0ba

Please sign in to comment.