Get ReadyToRun working on -23428
This commit is contained in:
parent
756080421d
commit
e9714c419a
1 changed files with 15 additions and 7 deletions
|
@ -8,27 +8,35 @@ popd
|
||||||
REM Replace with a robust method for finding the right crossgen.exe
|
REM Replace with a robust method for finding the right crossgen.exe
|
||||||
set CROSSGEN_UTIL=%UserProfile%\.dnx\packages\runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR\1.0.1-beta-23428\tools\crossgen.exe
|
set CROSSGEN_UTIL=%UserProfile%\.dnx\packages\runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR\1.0.1-beta-23428\tools\crossgen.exe
|
||||||
|
|
||||||
|
REM Crossgen currently requires itself to be next to mscorlib
|
||||||
|
copy %CROSSGEN_UTIL% /Y %BIN_DIR% > nul
|
||||||
|
|
||||||
pushd %BIN_DIR%
|
pushd %BIN_DIR%
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% System.Collections.Immutable.dll
|
REM It must also be called mscorlib, not mscorlib.ni
|
||||||
|
if exist mscorlib.ni.dll (
|
||||||
|
copy /Y mscorlib.ni.dll mscorlib.dll > nul
|
||||||
|
)
|
||||||
|
|
||||||
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% System.Collections.Immutable.dll
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% System.Reflection.Metadata.dll
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% System.Reflection.Metadata.dll
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.dll
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.dll
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.CSharp.dll
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.CSharp.dll
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.VisualBasic.dll
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.VisualBasic.dll
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% csc.exe
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% csc.exe
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% vbc.exe
|
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% vbc.exe
|
||||||
if not %errorlevel% EQU 0 goto fail
|
if not %errorlevel% EQU 0 goto fail
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue