From: James Ko Date: Sun, 7 Aug 2016 15:21:30 +0000 (-0400) Subject: Don't overwrite crossgen log in build.cmd script (#6639) X-Git-Tag: accepted/tizen/base/20180629.140029~3865 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5976ffa9a624bd05bbb0d67a742e89bc9f16d1dc;p=platform%2Fupstream%2Fcoreclr.git Don't overwrite crossgen log in build.cmd script (#6639) --- diff --git a/build.cmd b/build.cmd index f11074f..01b48de 100644 --- a/build.cmd +++ b/build.cmd @@ -28,7 +28,7 @@ set __VSVersion=vs2015 :: Define a prefix for most output progress messages that come from this script. That makes :: it easier to see where these are coming from. Note that there is a trailing space here. -set __MsgPrefix=BUILD: +set "__MsgPrefix=BUILD: " :: Set the various build properties here so that CMake and MSBuild can pick them up set "__ProjectDir=%~dp0" @@ -346,10 +346,10 @@ if %__BuildNativeCoreLib% EQU 1 ( set "__CrossGenCoreLibLog=%__LogsDir%\CrossgenMSCoreLib_%__BuildOS%__%__BuildArch%__%__BuildType%.log" set "__CrossgenExe=%__CrossComponentBinDir%\crossgen.exe" - "%__CrossgenExe%" /Platform_Assemblies_Paths "%__BinDir%" /out "%__BinDir%\mscorlib.ni.dll" "%__BinDir%\mscorlib.dll" > "%__CrossGenCoreLibLog%" 2>&1 + "!__CrossgenExe!" /Platform_Assemblies_Paths "%__BinDir%" /out "%__BinDir%\mscorlib.ni.dll" "%__BinDir%\mscorlib.dll" > "!__CrossGenCoreLibLog!" 2>&1 if NOT !errorlevel! == 0 ( echo %__MsgPrefix%Error: CrossGen mscorlib facade build failed. Refer to the build log file for details: - echo %__CrossGenCoreLibLog% + echo !__CrossGenCoreLibLog! exit /b 1 ) )