From dbe4efb633ef78971f29c9bbe4b1300b4e7a583e Mon Sep 17 00:00:00 2001 From: Mandeep Singh Grang Date: Mon, 22 Feb 2021 21:25:09 -0800 Subject: [PATCH] Use x64 toolchain to build x86 compiler --- Windows/config-vars.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Windows/config-vars.bat b/Windows/config-vars.bat index 38212bf..b35a195 100755 --- a/Windows/config-vars.bat +++ b/Windows/config-vars.bat @@ -58,15 +58,18 @@ if NOT DEFINED BUILDOS ( ) rem Validate or set target architecture for testing. +rem x64_x86 will use x64 MSVC toolchain to build x86 llvm/clang compiler. +rem x64 will use x64 MSVC toolchain to build x64 llvm/clang compiler. +rem See https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160 if NOT DEFINED TEST_TARGET_ARCH ( set TEST_TARGET_ARCH=x64 -) else if "%TEST_TARGET_ARCH%"=="x86" ( +) else if "%TEST_TARGET_ARCH%"=="x64_x86" ( rem ) else if "%TEST_TARGET_ARCH%"=="x64" ( rem ) else ( - @echo Unknown TEST_TARGET_ARCH value %TEST_TARGET_ARCH: must be x86 or x64 + @echo Unknown TEST_TARGET_ARCH value %TEST_TARGET_ARCH: must be x64 or x64_x86. exit /b 1; )