Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2017-03-09 00:49:46 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2017-03-09 00:49:46 +0300
commit747abc8b17cf33583b09194680e7d40bcf5bf56f (patch)
treef31c79dddc5a673b33cd0ee3ba7fe8ce4be66188 /Tools-Override
parentc544d6a05f0c120805304c3519086835dd304c71 (diff)
Check for crossgen in shared framework before trying to restore it
We are considering to include crossgen with the shared framework so if it exists we should use it instead of pulling from the runtime package. For some distro's like Alpine we don't have the matching runtime version because we had to build a manual CLI but we did include crossgen in the shared framework we manually created so this will enable crossgen for our alpine builds.
Diffstat (limited to 'Tools-Override')
-rwxr-xr-xTools-Override/crossgen.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools-Override/crossgen.sh b/Tools-Override/crossgen.sh
index 75a77d50a5..880c43a621 100755
--- a/Tools-Override/crossgen.sh
+++ b/Tools-Override/crossgen.sh
@@ -13,6 +13,11 @@ usage()
restore_crossgen()
{
+ __crossgen=$__sharedFxDir/crossgen
+ if [ -e $__crossgen ]; then
+ return
+ fi
+
__pjDir=$__toolsDir/crossgen
mkdir -p $__pjDir
echo "{\"frameworks\":{\"netcoreapp1.1\":{\"dependencies\":{\"Microsoft.NETCore.Runtime.CoreCLR\":\"$__CoreClrVersion\", \"Microsoft.NETCore.Platforms\": \"$__CoreClrVersion\"}}},\"runtimes\":{\"$__rid\":{}}}" > "$__pjDir/project.json"