summaryrefslogtreecommitdiff
path: root/tests/buildtest.cmd
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@microsoft.com>2016-04-07 06:45:52 -0700
committerKyungwoo Lee <kyulee@microsoft.com>2016-04-07 06:45:52 -0700
commit50ea585d52cd4cf49a7ccb2df6b9dcc19437493b (patch)
treef55dc6c6c447ab987e11b79b5e5a9efbf8a64aed /tests/buildtest.cmd
parent5e1f70cabf7e4f58c273452951fff53f1fd6981e (diff)
parentc8ff926bf94279e925fe25cea9412c322e767542 (diff)
downloadcoreclr-50ea585d52cd4cf49a7ccb2df6b9dcc19437493b.tar.gz
coreclr-50ea585d52cd4cf49a7ccb2df6b9dcc19437493b.tar.bz2
coreclr-50ea585d52cd4cf49a7ccb2df6b9dcc19437493b.zip
Merge pull request #4139 from kyulee1/launcher
ARM64: Launch test build and run in parallel
Diffstat (limited to 'tests/buildtest.cmd')
-rw-r--r--tests/buildtest.cmd28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/buildtest.cmd b/tests/buildtest.cmd
index 349c0abc79..f85941d2bd 100644
--- a/tests/buildtest.cmd
+++ b/tests/buildtest.cmd
@@ -68,6 +68,10 @@ if /i "%1" == "gcstresslevel" (set __GCStressLevel=%2&shift&shift&goto Arg
if /i "%1" == "verbose" (set __verbosity=detailed&shift&goto Arg_Loop)
+@REM It was initially /toolset_dir. Not sure why, since it doesn't match the other usage.
+if /i "%1" == "/toolset_dir" (set __ToolsetDir=%2&set __PassThroughArgs=%__PassThroughArgs% %2&shift&shift&goto Arg_Loop)
+if /i "%1" == "toolset_dir" (set __ToolsetDir=%2&set __PassThroughArgs=%__PassThroughArgs% %2&shift&shift&goto Arg_Loop)
+
if /i not "%1" == "msbuildargs" goto SkipMsbuildArgs
:: All the rest of the args will be collected and passed directly to msbuild.
:CollectMsbuildArgs
@@ -82,6 +86,10 @@ goto Usage
:ArgsDone
+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
+
if %__verbosity%==detailed (
echo Enabling verbose file logging
)
@@ -371,3 +379,23 @@ echo Visual Studio 2013 Express does not include the DIA SDK. ^
You need Visual Studio 2013+ (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=%__ToolsetDir%\cpp\bin;%PATH%
+set LIB=%__ToolsetDir%\cpp\libWin9CoreSystem;%__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