summaryrefslogtreecommitdiff
path: root/run.cmd
diff options
context:
space:
mode:
authorFelipe Pessoto <felipepessoto@hotmail.com>2017-04-27 01:50:04 -0300
committerJan Kotas <jkotas@microsoft.com>2017-04-26 21:50:04 -0700
commita0340286301356cde220684fc5c1b0402652e954 (patch)
tree681d94e13e5e080dd3e6faf817c51ecae35e26e1 /run.cmd
parent4d1df6367de8df74a4d1fb3fe079e181c511d76b (diff)
downloadcoreclr-a0340286301356cde220684fc5c1b0402652e954.tar.gz
coreclr-a0340286301356cde220684fc5c1b0402652e954.tar.bz2
coreclr-a0340286301356cde220684fc5c1b0402652e954.zip
Fix building with only VS2017 installed. (#11182)
The fix was originally made in https://github.com/dotnet/corefx/pull/18700
Diffstat (limited to 'run.cmd')
-rw-r--r--run.cmd8
1 files changed, 7 insertions, 1 deletions
diff --git a/run.cmd b/run.cmd
index 5327df4435..0fae662421 100644
--- a/run.cmd
+++ b/run.cmd
@@ -53,9 +53,15 @@ xcopy %~dp0Tools-Override\* %~dp0Tools /y >nul
set _toolRuntime=%~dp0Tools
set _dotnet=%_toolRuntime%\dotnetcli\dotnet.exe
+set _json=%~dp0config.json
+:: run.exe depends on running in the root directory, notably because the config.json specifies
+:: a relative path to the binclash logger
+
+pushd %~dp0
echo Running: %_dotnet% %_toolRuntime%\run.exe %~dp0config.json %*
-call %_dotnet% %_toolRuntime%\run.exe %~dp0config.json %*
+call %_dotnet% %_toolRuntime%\run.exe "%_json%" %*
+popd
if NOT [%ERRORLEVEL%]==[0] (
exit /b 1
)