Update *nix scripts to make CLI selfhost incremental
This commit is contained in:
parent
84da50f00f
commit
cbe90c3f9d
1 changed files with 16 additions and 11 deletions
|
@ -55,9 +55,6 @@ FILES_TO_CLEAN=( \
|
||||||
Microsoft.DotNet.Runtime.pdb \
|
Microsoft.DotNet.Runtime.pdb \
|
||||||
)
|
)
|
||||||
|
|
||||||
# Clean up output
|
|
||||||
[ -d "$OUTPUT_DIR" ] && rm -Rf "$OUTPUT_DIR"
|
|
||||||
|
|
||||||
RUNTIME_OUTPUT_DIR="$OUTPUT_DIR/runtime/coreclr"
|
RUNTIME_OUTPUT_DIR="$OUTPUT_DIR/runtime/coreclr"
|
||||||
|
|
||||||
for project in ${PROJECTS[@]}
|
for project in ${PROJECTS[@]}
|
||||||
|
@ -100,25 +97,33 @@ cd $OUTPUT_DIR
|
||||||
find . -type f | xargs chmod 644
|
find . -type f | xargs chmod 644
|
||||||
$REPOROOT/scripts/build/fix-mode-flags.sh
|
$REPOROOT/scripts/build/fix-mode-flags.sh
|
||||||
|
|
||||||
info "Crossgenning Roslyn compiler ..."
|
if [ ! -f "$OUTPUT_DIR/bin/csc.ni.exe" ]; then
|
||||||
$REPOROOT/scripts/crossgen/crossgen_roslyn.sh "$OUTPUT_DIR/bin"
|
info "Crossgenning Roslyn compiler ..."
|
||||||
|
$REPOROOT/scripts/crossgen/crossgen_roslyn.sh "$OUTPUT_DIR/bin"
|
||||||
|
fi
|
||||||
|
|
||||||
# Make OUTPUT_DIR Folder Accessible
|
# Make OUTPUT_DIR Folder Accessible
|
||||||
chmod -R a+r $OUTPUT_DIR
|
chmod -R a+r $OUTPUT_DIR
|
||||||
|
|
||||||
# Copy DNX in to OUTPUT_DIR
|
# Copy DNX in to OUTPUT_DIR
|
||||||
cp -R $DNX_ROOT $OUTPUT_DIR/bin/dnx
|
if [ ! -d $OUTPUT_DIR/bin/dnx ]; then
|
||||||
|
cp -R $DNX_ROOT $OUTPUT_DIR/bin/dnx
|
||||||
|
fi
|
||||||
|
|
||||||
# Copy and CHMOD the dotnet-dnx script
|
# Copy and CHMOD the dotnet-dnx script
|
||||||
cp $REPOROOT/scripts/dotnet-dnx.sh $OUTPUT_DIR/bin/dotnet-dnx
|
if [ ! -f $OUTPUT_DIR/bin/dotnet-dnx ]; then
|
||||||
chmod a+x $OUTPUT_DIR/bin/dotnet-dnx
|
cp $REPOROOT/scripts/dotnet-dnx.sh $OUTPUT_DIR/bin/dotnet-dnx
|
||||||
|
chmod a+x $OUTPUT_DIR/bin/dotnet-dnx
|
||||||
|
fi
|
||||||
|
|
||||||
# No compile native support in centos yet
|
# No compile native support in centos yet
|
||||||
# https://github.com/dotnet/cli/issues/453
|
# https://github.com/dotnet/cli/issues/453
|
||||||
if [ "$OSNAME" != "centos" ]; then
|
if [ "$OSNAME" != "centos" ]; then
|
||||||
# Copy in AppDeps
|
# Copy in AppDeps
|
||||||
header "Acquiring Native App Dependencies"
|
if [ ! -d "$OUTPUT_DIR/bin/appdepsdk" ]; then
|
||||||
DOTNET_HOME=$OUTPUT_DIR DOTNET_TOOLS=$OUTPUT_DIR $REPOROOT/scripts/build/build_appdeps.sh "$OUTPUT_DIR/bin"
|
header "Acquiring Native App Dependencies"
|
||||||
|
DOTNET_HOME=$OUTPUT_DIR DOTNET_TOOLS=$OUTPUT_DIR $REPOROOT/scripts/build/build_appdeps.sh "$OUTPUT_DIR/bin"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Stamp the output with the commit metadata
|
# Stamp the output with the commit metadata
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue