From 70d3cee5f622a634c7a454197be15ce4bcdf26f1 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 14 Mar 2024 14:54:09 +0100 Subject: [PATCH] Use x64->x86 MSVC cross-compiler if possible (#99748) --- src/coreclr/nativeaot/BuildIntegration/findvcvarsall.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coreclr/nativeaot/BuildIntegration/findvcvarsall.bat b/src/coreclr/nativeaot/BuildIntegration/findvcvarsall.bat index efee6316785f6..70294486de450 100644 --- a/src/coreclr/nativeaot/BuildIntegration/findvcvarsall.bat +++ b/src/coreclr/nativeaot/BuildIntegration/findvcvarsall.bat @@ -33,6 +33,9 @@ IF /I "%~1"=="arm64" ( SET vcEnvironment=x86_arm64 IF /I "%procArch%"=="AMD64" SET vcEnvironment=amd64_arm64 ) +IF /I "%~1"=="x86" ( + IF /I "%procArch%"=="AMD64" SET vcEnvironment=amd64_x86 +) CALL "%vsBase%\vc\Auxiliary\Build\vcvarsall.bat" %vcEnvironment% > NUL