Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 5976ffa

Browse files
jamesqojkotas
authored andcommitted
Don't overwrite crossgen log in build.cmd script (#6639)
1 parent ab6bc52 commit 5976ffa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set __VSVersion=vs2015
2828

2929
:: Define a prefix for most output progress messages that come from this script. That makes
3030
:: it easier to see where these are coming from. Note that there is a trailing space here.
31-
set __MsgPrefix=BUILD:
31+
set "__MsgPrefix=BUILD: "
3232

3333
:: Set the various build properties here so that CMake and MSBuild can pick them up
3434
set "__ProjectDir=%~dp0"
@@ -346,10 +346,10 @@ if %__BuildNativeCoreLib% EQU 1 (
346346

347347
set "__CrossGenCoreLibLog=%__LogsDir%\CrossgenMSCoreLib_%__BuildOS%__%__BuildArch%__%__BuildType%.log"
348348
set "__CrossgenExe=%__CrossComponentBinDir%\crossgen.exe"
349-
"%__CrossgenExe%" /Platform_Assemblies_Paths "%__BinDir%" /out "%__BinDir%\mscorlib.ni.dll" "%__BinDir%\mscorlib.dll" > "%__CrossGenCoreLibLog%" 2>&1
349+
"!__CrossgenExe!" /Platform_Assemblies_Paths "%__BinDir%" /out "%__BinDir%\mscorlib.ni.dll" "%__BinDir%\mscorlib.dll" > "!__CrossGenCoreLibLog!" 2>&1
350350
if NOT !errorlevel! == 0 (
351351
echo %__MsgPrefix%Error: CrossGen mscorlib facade build failed. Refer to the build log file for details:
352-
echo %__CrossGenCoreLibLog%
352+
echo !__CrossGenCoreLibLog!
353353
exit /b 1
354354
)
355355
)

0 commit comments

Comments
 (0)