On Windows, build an x86 compiler using x64 tools
This commit is contained in:
Родитель
cf431c280c
Коммит
d98f82b1ac
|
@ -25,8 +25,8 @@ cd %LLVM_OBJ_DIR%
|
||||||
@echo.Running the configure step
|
@echo.Running the configure step
|
||||||
@echo.======================================================================
|
@echo.======================================================================
|
||||||
|
|
||||||
@echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %TEST_TARGET_ARCH%
|
@echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\%CONFIGURE_SCRIPT%"
|
||||||
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %TEST_TARGET_ARCH%
|
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\%CONFIGURE_SCRIPT%"
|
||||||
|
|
||||||
if "%BUILD_PACKAGE%"=="Yes" (
|
if "%BUILD_PACKAGE%"=="Yes" (
|
||||||
if "%BUILDCONFIGURATION%"=="Release" (
|
if "%BUILDCONFIGURATION%"=="Release" (
|
||||||
|
|
|
@ -57,12 +57,16 @@ if NOT DEFINED BUILDOS (
|
||||||
exit /b 1;
|
exit /b 1;
|
||||||
)
|
)
|
||||||
|
|
||||||
rem Validate or set target architecture for testing.
|
rem Validate or set target architecture and configure script for testing.
|
||||||
|
|
||||||
|
rem By default, build an x64 compiler using x64 tools.
|
||||||
|
set CONFIGURE_SCRIPT=vcvars64.bat
|
||||||
|
|
||||||
if NOT DEFINED TEST_TARGET_ARCH (
|
if NOT DEFINED TEST_TARGET_ARCH (
|
||||||
set TEST_TARGET_ARCH=x64
|
set TEST_TARGET_ARCH=x64
|
||||||
) else if "%TEST_TARGET_ARCH%"=="x86" (
|
) else if "%TEST_TARGET_ARCH%"=="x86" (
|
||||||
rem
|
rem Build an x86 compiler using x64 tools.
|
||||||
|
set CONFIGURE_SCRIPT=vcvarsamd64_x86.bat
|
||||||
) else if "%TEST_TARGET_ARCH%"=="x64" (
|
) else if "%TEST_TARGET_ARCH%"=="x64" (
|
||||||
rem
|
rem
|
||||||
) else (
|
) else (
|
||||||
|
@ -183,6 +187,7 @@ if NOT DEFINED CL_CPU_COUNT (
|
||||||
@echo. BUILDCONFIGURATION: %BUILDCONFIGURATION%
|
@echo. BUILDCONFIGURATION: %BUILDCONFIGURATION%
|
||||||
@echo. BUILDOS: %BUILDOS%
|
@echo. BUILDOS: %BUILDOS%
|
||||||
@echo. TEST_TARGET_ARCH: %TEST_TARGET_ARCH%
|
@echo. TEST_TARGET_ARCH: %TEST_TARGET_ARCH%
|
||||||
|
@echo. CONFIGURE_SCRIPT: %CONFIGURE_SCRIPT%
|
||||||
@echo. TEST_SUITE: %TEST_SUITE%
|
@echo. TEST_SUITE: %TEST_SUITE%
|
||||||
@echo. BUILD_CHECKEDC_CLEAN: %BUILD_CHECKEDC_CLEAN%
|
@echo. BUILD_CHECKEDC_CLEAN: %BUILD_CHECKEDC_CLEAN%
|
||||||
@echo. BUILD_PACKAGE: %BUILD_PACKAGE%
|
@echo. BUILD_PACKAGE: %BUILD_PACKAGE%
|
||||||
|
|
|
@ -14,8 +14,8 @@ set PATH="C:\GnuWin32\bin";%PATH%
|
||||||
set OLD_DIR=%CD%
|
set OLD_DIR=%CD%
|
||||||
cd %LLVM_OBJ_DIR%
|
cd %LLVM_OBJ_DIR%
|
||||||
|
|
||||||
@echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %TEST_TARGET_ARCH%
|
@echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\%CONFIGURE_SCRIPT%"
|
||||||
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %TEST_TARGET_ARCH%
|
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\%CONFIGURE_SCRIPT%"
|
||||||
|
|
||||||
@echo.======================================================================
|
@echo.======================================================================
|
||||||
@echo.Running the Checked C regression tests
|
@echo.Running the Checked C regression tests
|
||||||
|
|
Загрузка…
Ссылка в новой задаче