diff options
author | Rama Krishnan Raghupathy <ramarag@microsoft.com> | 2016-03-08 18:26:13 -0800 |
---|---|---|
committer | Rama Krishnan Raghupathy <ramarag@microsoft.com> | 2016-03-09 14:27:22 -0800 |
commit | b8f570dc3028cab153fb6a007ba8d24abb4e1fd3 (patch) | |
tree | b1dd1ed93d3d512ea0dd902f31da9cd7ee78443e /build.cmd | |
parent | d2ab1fbd40343e01fcb71fb9793ee7c681eeb1de (diff) | |
download | coreclr-b8f570dc3028cab153fb6a007ba8d24abb4e1fd3.tar.gz coreclr-b8f570dc3028cab153fb6a007ba8d24abb4e1fd3.tar.bz2 coreclr-b8f570dc3028cab153fb6a007ba8d24abb4e1fd3.zip |
Enable native test binaries to be built for Arm64
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 47 |
1 files changed, 26 insertions, 21 deletions
@@ -181,9 +181,6 @@ set "__TestRootDir=%__RootBinDir%\tests" set "__TestBinDir=%__TestRootDir%\%__BuildOS%.%__BuildArch%.%__BuildType%" set "__TestIntermediatesDir=%__RootBinDir%\tests\obj\%__BuildOS%.%__BuildArch%.%__BuildType%" -:: Use this variable to locate dynamically generated files; the actual location though will be different. -set "__GeneratedIntermediatesDir=%__IntermediatesDir%\Generated_latest" - :: Generate path to be set for CMAKE_INSTALL_PREFIX to contain forward slash set "__CMakeBinDir=%__BinDir%" set "__CMakeBinDir=%__CMakeBinDir:\=/%" @@ -278,28 +275,13 @@ echo %__MsgPrefix%Commencing build of native components for %__BuildOS%.%__Build REM Use setlocal to restrict environment changes form vcvarsall.bat and more to just this native components build section. setlocal EnableDelayedExpansion EnableExtensions -if /i not "%__BuildArch%" == "arm64" goto NotArm64Build - +if /i "%__BuildArch%" == "arm64" ( rem arm64 builds currently use private toolset which has not been released yet REM TODO, remove once the toolset is open. - -if /i "%__ToolsetDir%" == "" ( - echo %__MsgPrefix%Error: A toolset directory is required for the Arm64 Windows build. Use the toolset_dir argument. - exit /b 1 -) - -set PATH=%PATH%;%__ToolsetDir%\cpp\bin -set LIB=%__ToolsetDir%\OS\lib;%__ToolsetDir%\cpp\lib -set INCLUDE=^ -%__ToolsetDir%\cpp\inc;^ -%__ToolsetDir%\OS\inc\Windows;^ -%__ToolsetDir%\OS\inc\Windows\crt;^ -%__ToolsetDir%\cpp\inc\vc;^ -%__ToolsetDir%\OS\inc\win8 +call :PrivateToolSet goto GenVSSolution - -:NotArm64Build +) :: Set the environment for the native build set __VCBuildArch=x86_amd64 @@ -509,6 +491,10 @@ if defined __TestPriority ( set "__BuildtestArgs=%__BuildtestArgs% Priority %__TestPriority%" ) +rem arm64 builds currently use private toolset which has not been released yet +REM TODO, remove once the toolset is open. +if /i "%__BuildArch%" == "arm64" call :PrivateToolSet + call %__ProjectDir%\tests\buildtest.cmd %__BuildtestArgs% if errorlevel 1 ( @@ -676,3 +662,22 @@ echo Visual Studio Express does not include the DIA SDK. ^ You need Visual Studio 2015+ (Community is free). echo See: https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/developer-guide.md#prerequisites exit /b 1 + +:PrivateToolSet + +echo %__MsgPrefix% Setting Up the usage of __ToolsetDir:%__ToolsetDir% + +if /i "%__ToolsetDir%" == "" ( + echo %__MsgPrefix%Error: A toolset directory is required for the Arm64 Windows build. Use the toolset_dir argument. + exit /b 1 +) + +set PATH=%PATH%;%__ToolsetDir%\cpp\bin +set LIB=%__ToolsetDir%\OS\lib;%__ToolsetDir%\cpp\lib +set INCLUDE=^ +%__ToolsetDir%\cpp\inc;^ +%__ToolsetDir%\OS\inc\Windows;^ +%__ToolsetDir%\OS\inc\Windows\crt;^ +%__ToolsetDir%\cpp\inc\vc;^ +%__ToolsetDir%\OS\inc\win8 +exit /b 0 |