summaryrefslogtreecommitdiff
path: root/run.cmd
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 19:09:09 +0900
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 19:09:09 +0900
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /run.cmd
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'run.cmd')
-rw-r--r--run.cmd39
1 files changed, 39 insertions, 0 deletions
diff --git a/run.cmd b/run.cmd
new file mode 100644
index 0000000000..3647198d3d
--- /dev/null
+++ b/run.cmd
@@ -0,0 +1,39 @@
+@if "%_echo%" neq "on" echo off
+setlocal
+
+if not defined VisualStudioVersion (
+ if defined VS140COMNTOOLS (
+ if not exist "%VS140COMNTOOLS%\..\IDE\devenv.exe" goto NoVS
+ if not exist "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" goto NoVS
+ if not exist "%VS140COMNTOOLS%\VsDevCmd.bat" goto NoVS
+ call "%VS140COMNTOOLS%\VsDevCmd.bat"
+ goto :Run
+ )
+
+ :NoVS
+ echo Error: Visual Studio 2015 required.
+ echo https://github.com/dotnet/coreclr/blob/master/Documentation/building/windows-instructions.md for build instructions.
+ exit /b 1
+)
+
+:Run
+:: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
+:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
+set Platform=
+
+:: Restore the Tools directory
+call %~dp0init-tools.cmd
+if NOT [%ERRORLEVEL%]==[0] (
+ exit /b 1
+)
+
+set _toolRuntime=%~dp0Tools
+set _dotnet=%_toolRuntime%\dotnetcli\dotnet.exe
+
+echo Running: %_dotnet% %_toolRuntime%\run.exe %*
+call %_dotnet% %_toolRuntime%\run.exe %*
+if NOT [%ERRORLEVEL%]==[0] (
+ exit /b 1
+)
+
+exit /b 0 \ No newline at end of file