Fix building with only VS2017 installed. (dotnet/coreclr#11182)
authorFelipe Pessoto <felipepessoto@hotmail.com>
Thu, 27 Apr 2017 04:50:04 +0000 (01:50 -0300)
committerJan Kotas <jkotas@microsoft.com>
Thu, 27 Apr 2017 04:50:04 +0000 (21:50 -0700)
The fix was originally made in https://github.com/dotnet/corefx/pull/18700

Commit migrated from https://github.com/dotnet/coreclr/commit/a0340286301356cde220684fc5c1b0402652e954

src/coreclr/run.cmd

index 5327df4..0fae662 100644 (file)
@@ -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
 )