Merge pull request #111 from agocke/AddRoslynCrossgen

First try at crossgening Roslyn
This commit is contained in:
Andy Gocke 2015-10-29 00:06:19 -07:00
commit a74fddf8b2
2 changed files with 46 additions and 0 deletions

View file

@ -101,6 +101,10 @@ echo Building stage2 dotnet-publish.exe ...
dotnet publish --framework %TFM% --runtime %RID% --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Resgen"
if errorlevel 1 goto fail
echo Crossgening Roslyn compiler ...
call %~dp0crossgen/crossgen_roslyn.cmd %STAGE2_DIR%
if errorlevel 1 goto fail
REM Copy DNX in to stage2
xcopy /s /q %DNX_ROOT% %STAGE2_DIR%\dnx\

View file

@ -0,0 +1,42 @@
@echo off
REM Get absolute path
pushd %1
set BIN_DIR=%CD%
popd
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
pushd %BIN_DIR%
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% System.Collections.Immutable.dll
if not %errorlevel% EQU 0 goto fail
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% System.Reflection.Metadata.dll
if not %errorlevel% EQU 0 goto fail
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.dll
if not %errorlevel% EQU 0 goto fail
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.CSharp.dll
if not %errorlevel% EQU 0 goto fail
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.VisualBasic.dll
if not %errorlevel% EQU 0 goto fail
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% csc.exe
if not %errorlevel% EQU 0 goto fail
%CROSSGEN_UTIL% /nologo /Platform_Assemblies_Paths %BIN_DIR% vbc.exe
if not %errorlevel% EQU 0 goto fail
popd
goto end
:fail
popd
echo Crossgen failed...
exit /B 1
:end