fix up bootstrap script a bit
This commit is contained in:
parent
fbedf48da2
commit
cfb5a1836e
4 changed files with 13 additions and 15 deletions
|
@ -2,9 +2,6 @@
|
|||
|
||||
setlocal
|
||||
|
||||
REM Build 'dotnet' using a version of itself hosted on the DNX
|
||||
REM The output of this is independent of DNX
|
||||
|
||||
REM This trick gets the absolute path from a relative path
|
||||
pushd %~dp0..
|
||||
set REPOROOT=%CD%
|
||||
|
@ -37,7 +34,7 @@ if not exist "%CMAKE_OUTPUT%" mkdir "%CMAKE_OUTPUT%"
|
|||
pushd "%CMAKE_OUTPUT%"
|
||||
cmake .. -G "Visual Studio 14 2015 Win64"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
msbuild ALL_BUILD.vcxproj /p:Configuration="%CONFIGURATION%"
|
||||
"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration="%CONFIGURATION%"
|
||||
|
||||
if exist "%HOST_DIR%" rd /s /q "%HOST_DIR%"
|
||||
mkdir "%HOST_DIR%"
|
||||
|
@ -128,9 +125,10 @@ set PATH=%STAGE2_DIR%;%START_PATH%
|
|||
|
||||
del "%REPOROOT%\test\TestApp\project.lock.json"
|
||||
dotnet restore "%REPOROOT%\test\TestApp" --runtime "%RID%" --quiet
|
||||
dotnet publish "%REPOROOT%\test\TestApp" --framework "%TFM%" --runtime "%RID%" --output "%REPOROOT%\artifacts\%RID%\smoketest"
|
||||
dotnet compile "%REPOROOT%\test\TestApp" --output "%REPOROOT%\artifacts\%RID%\smoketest"
|
||||
|
||||
"%REPOROOT%/artifacts/%RID%/smoketest/TestApp" 2>nul >nul
|
||||
set CLRHOST_CLR_PATH=%STAGE2_DIR%
|
||||
"%REPOROOT%\artifacts\%RID%\smoketest\TestApp" 2>nul >nul
|
||||
if errorlevel 1 goto fail
|
||||
|
||||
REM Check that a compiler error is reported
|
||||
|
|
|
@ -43,7 +43,7 @@ DNX_ROOT="$(dirname $(which dotnet))/dnx"
|
|||
|
||||
banner "Restoring packages"
|
||||
|
||||
dotnet restore "$REPOROOT" --runtime osx.10.10-x64 --runtime ubuntu.14.04-x64 --runtime osx.10.11-x64 --quiet
|
||||
dotnet restore "$REPOROOT" --quiet
|
||||
|
||||
# Clean up stage1
|
||||
[ -d "$STAGE1_DIR" ] && rm -Rf "$STAGE1_DIR"
|
||||
|
|
|
@ -18,25 +18,25 @@ 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
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% System.Collections.Immutable.dll >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% System.Reflection.Metadata.dll
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% System.Reflection.Metadata.dll >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.dll
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.dll >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.CSharp.dll
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.CSharp.dll >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.VisualBasic.dll
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% Microsoft.CodeAnalysis.VisualBasic.dll >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% csc.exe
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% csc.exe >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% vbc.exe
|
||||
crossgen /nologo /ReadyToRun /Platform_Assemblies_Paths %BIN_DIR% vbc.exe >nul 2>nul
|
||||
if not %errorlevel% EQU 0 goto fail
|
||||
|
||||
popd
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
SETLOCAL
|
||||
SET ERRORLEVEL=
|
||||
|
||||
"%~dp0dnx\dnx" "%~dp0dnx\lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll" restore %*
|
||||
"%~dp0dnx\dnx" "%~dp0dnx\lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll" restore --runtime "osx.10.10-x64" --runtime "ubuntu.14.04-x64" %*
|
||||
|
||||
exit /b %ERRORLEVEL%
|
||||
ENDLOCAL
|
||||
|
|
Loading…
Reference in a new issue