Update windows scripts to make CLI selfhost incremental
This commit is contained in:
parent
1444815285
commit
84da50f00f
1 changed files with 17 additions and 13 deletions
|
@ -44,10 +44,6 @@ $FilesToClean = @(
|
||||||
"Microsoft.DotNet.Runtime.pdb"
|
"Microsoft.DotNet.Runtime.pdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (Test-Path $OutputDir) {
|
|
||||||
del -rec -for $OutputDir
|
|
||||||
}
|
|
||||||
|
|
||||||
$RuntimeOutputDir = "$OutputDir\runtime\coreclr"
|
$RuntimeOutputDir = "$OutputDir\runtime\coreclr"
|
||||||
|
|
||||||
# Publish each project
|
# Publish each project
|
||||||
|
@ -83,21 +79,29 @@ cp "$HostDir\clihost.dll" "$OutputDir\bin"
|
||||||
|
|
||||||
# corehostify externally-provided binaries (csc, vbc, etc.)
|
# corehostify externally-provided binaries (csc, vbc, etc.)
|
||||||
$BinariesForCoreHost | ForEach-Object {
|
$BinariesForCoreHost | ForEach-Object {
|
||||||
mv $OutputDir\bin\$_.exe $OutputDir\bin\$_.dll
|
mv $OutputDir\bin\$_.exe $OutputDir\bin\$_.dll -Force
|
||||||
cp $OutputDir\bin\corehost.exe $OutputDir\bin\$_.exe
|
cp $OutputDir\bin\corehost.exe $OutputDir\bin\$_.exe -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
# Crossgen Roslyn
|
# Crossgen Roslyn
|
||||||
header "Crossgening Roslyn compiler ..."
|
if (-not (Test-Path "$OutputDir\bin\csc.ni.exe")) {
|
||||||
_cmd "$RepoRoot\scripts\crossgen\crossgen_roslyn.cmd ""$OutputDir"""
|
header "Crossgening Roslyn compiler ..."
|
||||||
|
_cmd "$RepoRoot\scripts\crossgen\crossgen_roslyn.cmd ""$OutputDir"""
|
||||||
|
}
|
||||||
|
|
||||||
# Copy dnx into stage OutputDir
|
# Copy dnx into stage OutputDir
|
||||||
cp -rec "$DnxRoot\" "$OutputDir\bin\dnx\"
|
if (-not (Test-Path "$OutputDir\bin\dnx\")) {
|
||||||
|
cp -rec "$DnxRoot\" "$OutputDir\bin\dnx\"
|
||||||
|
}
|
||||||
|
|
||||||
# Copy in the dotnet-dnx script
|
# Copy in the dotnet-dnx script
|
||||||
cp "$RepoRoot\scripts\dotnet-dnx.cmd" "$OutputDir\bin\dotnet-dnx.cmd"
|
if (-not (Test-Path "$OutputDir\bin\dotnet-dnx.cmd")) {
|
||||||
|
cp "$RepoRoot\scripts\dotnet-dnx.cmd" "$OutputDir\bin\dotnet-dnx.cmd"
|
||||||
|
}
|
||||||
|
|
||||||
# Copy in AppDeps
|
# Copy in AppDeps
|
||||||
$env:PATH = "$OutputDir\bin;$StartPath"
|
if (-not (Test-Path "$OutputDir\bin\appdepsdk\")) {
|
||||||
header "Acquiring Native App Dependencies"
|
$env:PATH = "$OutputDir\bin;$StartPath"
|
||||||
_cmd "$RepoRoot\scripts\build\build_appdeps.cmd ""$OutputDir"""
|
header "Acquiring Native App Dependencies"
|
||||||
|
_cmd "$RepoRoot\scripts\build\build_appdeps.cmd ""$OutputDir"""
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue