From 61946967f8da49ca1f651b57e68397ac3334dbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Fri, 5 Apr 2024 18:14:56 +0200 Subject: [PATCH] Add -cross flag to build.ps1 (#100678) Fixes VMR build error on Windows after https://github.com/dotnet/installer/pull/19321 We haven't used or passed this on Windows before and a bunch of logic is conditioned based on the `CrossBuild` property (which is what `-cross` is turned into in build.sh) so ignore it for now. --- eng/build.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/build.ps1 b/eng/build.ps1 index 91bba3afc7e620..1f72dabed00e5f 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -12,6 +12,7 @@ Param( [string]$testscope, [switch]$testnobuild, [ValidateSet("x86","x64","arm","arm64","wasm")][string[]][Alias('a')]$arch = @([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant()), + [switch]$cross = $false, [string][Alias('s')]$subset, [ValidateSet("Debug","Release","Checked")][string][Alias('rc')]$runtimeConfiguration, [ValidateSet("Debug","Release")][string][Alias('lc')]$librariesConfiguration,