summaryrefslogtreecommitdiff
path: root/build.cmd
diff options
context:
space:
mode:
authorjashook <jashoo@microsoft.com>2019-06-13 04:29:29 +0000
committerjashook <jashoo@microsoft.com>2019-06-13 04:29:29 +0000
commit680ee73998a516a1b90d82ed5a932fa0f6836399 (patch)
treeca67b37c10763378195b3e5bf8f853ebb5c40e91 /build.cmd
parent5ca07f5369c881b0b2fde1518675d0a120c00b7e (diff)
downloadcoreclr-680ee73998a516a1b90d82ed5a932fa0f6836399.tar.gz
coreclr-680ee73998a516a1b90d82ed5a932fa0f6836399.tar.bz2
coreclr-680ee73998a516a1b90d82ed5a932fa0f6836399.zip
Also use WriteLinesToFile for IBC merge and read in the file in build.cmd
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd9
1 files changed, 7 insertions, 2 deletions
diff --git a/build.cmd b/build.cmd
index 945d128014..8d0e337a96 100644
--- a/build.cmd
+++ b/build.cmd
@@ -645,9 +645,14 @@ if %__BuildCoreLib% EQU 1 (
if %__IbcOptimize% EQU 1 (
echo %__MsgPrefix%Commencing IBCMerge of System.Private.CoreLib for %__BuildOS%.%__BuildArch%.%__BuildType%
set IbcMergeProjectFilePath=%__ProjectDir%\src\.nuget\optdata\ibcmerge.csproj
- for /f "tokens=*" %%s in ('call "%__ProjectDir%\dotnet.cmd" msbuild "!IbcMergeProjectFilePath!" /t:DumpIbcMergePackageVersion /nologo') do @(
- set __IbcMergeVersion=%%s
+ call "%__ProjectDir%\dotnet.cmd" msbuild "!IbcMergeProjectFilePath!" /t:DumpIbcMergePackageVersion /nologo %__CommonMSBuildArgs%
+
+ if not exist "%__IntermediatesDir%\ibcmergeversion.txt" (
+ echo "Failed to determine IBC Merge version."
+ exit /b 1
)
+
+ set /p __IbcMergeVersion<"%__IntermediatesDir%\ibcmergeversion.txt"
set IbcMergePath=%__PackagesDir%\microsoft.dotnet.ibcmerge\!__IbcMergeVersion!\tools\netcoreapp2.0\ibcmerge.dll
if exist !IbcMergePath! (