Skip to content

Commit

Permalink
[wasm] Set __DistroRid on Windows to browser-wasm (#50842)
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdoulik authored Apr 7, 2021
1 parent 740121d commit bedcecd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,11 @@ foreach ($config in $configuration) {
$argumentsWithConfig = $arguments + " -configuration $((Get-Culture).TextInfo.ToTitleCase($config))";
foreach ($singleArch in $arch) {
$argumentsWithArch = "/p:TargetArchitecture=$singleArch " + $argumentsWithConfig
$env:__DistroRid="win-$singleArch"
if ($os -eq "Browser") {
$env:__DistroRid="browser-$singleArch"
} else {
$env:__DistroRid="win-$singleArch"
}
Invoke-Expression "& `"$PSScriptRoot/common/build.ps1`" $argumentsWithArch"
if ($lastExitCode -ne 0) {
$failedBuilds += "Configuration: $config, Architecture: $singleArch"
Expand Down

0 comments on commit bedcecd

Please sign in to comment.