diff options
author | jashook <jashoo@microsoft.com> | 2015-12-16 16:28:51 -0800 |
---|---|---|
committer | jashook <jashoo@microsoft.com> | 2015-12-17 15:21:02 -0800 |
commit | 7ea4ce199e25d0b189f61d41737446f45f1efdab (patch) | |
tree | 89f3e6a6352d312d1279dc925b9e5225cad020ce /build.cmd | |
parent | 20406afc14193b53daf614fe8f812438778fca8f (diff) | |
download | coreclr-7ea4ce199e25d0b189f61d41737446f45f1efdab.tar.gz coreclr-7ea4ce199e25d0b189f61d41737446f45f1efdab.tar.bz2 coreclr-7ea4ce199e25d0b189f61d41737446f45f1efdab.zip |
Set up path for toolset.
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -48,6 +48,8 @@ if /i "%1" == "vs2015" (set __VSVersion=%1&shift&goto Arg_Loop) if /i "%1" == "skiptestbuild" (set __SkipTestBuild=1&shift&goto Arg_Loop) if /i "%1" == "docrossgen" (set __DoCrossgen=1&shift&goto Arg_Loop) +if /i "%1" == "/toolset_dir" (set __ToolsetDir=%2&shift&shift&goto Arg_Loop) + echo Invalid commandline argument: %1 goto Usage @@ -75,6 +77,7 @@ echo. :: MSBuild projects would need a rebuild set __MSBCleanBuildArgs=/t:rebuild + :: Cleanup the previous output for the selected configuration if exist "%__BinDir%" rd /s /q "%__BinDir%" if exist "%__IntermediatesDir%" rd /s /q "%__IntermediatesDir%" @@ -139,14 +142,30 @@ if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see h :: All set to commence the build -setlocal +setlocal EnableDelayedExpansion if defined __MscorlibOnly goto PerformMScorlibBuild echo Commencing build of native components for %__BuildOS%.%__BuildArch%.%__BuildType% echo. rem arm64 builds currently use private toolset which has not been released yet -if /i "%__BuildArch%" =="arm64" goto GenVSSolution +if /i "%__BuildArch%" == "arm64" ( + REM TODO, remove once the toolset is open. + + if not "%__BuildOS%" == "Windows_NT" goto GenVSSolution + + if /i "%__ToolsetDir%" == "" ( + echo "A toolset directory is required for the Arm64 Windows build." + exit /b 1 + ) +) + +REM TODO, remove once the toolset is open. +if /i "%__BuildArch%" == "arm64" set PATH=%PATH%;%__ToolsetDir%\cpp\bin +if /i "%__BuildArch%" == "arm64" set LIB=%__ToolsetDir%\OS\lib +if /i "%__BuildArch%" == "arm64" set INCLUDE="%__ToolsetDir%\cpp\inc;%__ToolsetDir%\OS\inc\Windows;%__ToolsetDir%\OS\inc\Windows\crt;%__ToolsetDir%\cpp\inc\vc;%__ToolsetDir%\OS\inc\win8" + +if /i "%__BuildArch%" == "arm64" goto GenVSSolution :: Set the environment for the native build set __VCBuildArch=x86_amd64 @@ -272,7 +291,7 @@ echo. echo Usage: echo %0 BuildArch BuildType [clean] [vsversion] where: echo. -echo BuildArch can be: x64, x86 +echo BuildArch can be: x64, x86, arm64 echo BuildType can be: Debug, Release echo Clean - optional argument to force a clean build. echo VSVersion - optional argument to use VS2013 or VS2015 (default VS2015) @@ -280,4 +299,5 @@ echo windowsmscorlib - Build mscorlib for Windows echo linuxmscorlib - Build mscorlib for Linux echo osxmscorlib - Build mscorlib for OS X echo skiptestbuild - Skip building tests +echo toolset_dir - toolset directory -- Arm64 use only. exit /b 1 |