summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJose Perez Rodriguez <joperezr@microsoft.com>2015-10-02 09:52:22 -0700
committerJose Perez Rodriguez <joperezr@microsoft.com>2015-10-13 12:58:42 -0700
commitcd49a9fada15fefeef6969d1f38fe6575c78533a (patch)
treeb21914ced9d910ca88710bb5546848841e7730b2 /build.sh
parentfec8f02328c50dc3143aca629305f8c8a77a635f (diff)
downloadcoreclr-cd49a9fada15fefeef6969d1f38fe6575c78533a.tar.gz
coreclr-cd49a9fada15fefeef6969d1f38fe6575c78533a.tar.bz2
coreclr-cd49a9fada15fefeef6969d1f38fe6575c78533a.zip
Using DotNetCore version of BclRewriter in mscorlib build
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 609bf1aea1..b7d10a5eac 100755
--- a/build.sh
+++ b/build.sh
@@ -102,6 +102,9 @@ build_mscorlib()
return
fi
+ # Temporary hack to make dnu restore more reliable. This is specifically for dnu beta 5 since this issue should already be addressed in later versions of dnu.
+ export MONO_THREADS_PER_CPU=2000
+
echo "Commencing build of mscorlib components for $__BuildOS.$__BuildArch.$__BuildType"
# Pull NuGet.exe down if we don't have it already
@@ -135,8 +138,21 @@ build_mscorlib()
fi
fi
+ # Set _ToolNugetRuntimeId
+ case $__BuildOS in
+ Linux)
+ _ToolNugetRuntimeId=ubuntu.14.04-x64
+ ;;
+ OSX)
+ _ToolNugetRuntimeId=osx.10.10-x64
+ ;;
+ *)
+ _ToolNugetRuntimeId=ubuntu.14.04-x64
+ ;;
+ esac
+
# Invoke MSBuild
- mono "$__MSBuildPath" /nologo "$__ProjectRoot/build.proj" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/MSCorLib_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__MSBuildBuildArch /p:__BuildType=$__BuildType /p:UseRoslynCompiler=true /p:BuildNugetPackage=false
+ mono "$__MSBuildPath" /nologo "$__ProjectRoot/build.proj" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/MSCorLib_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__MSBuildBuildArch /p:__BuildType=$__BuildType /p:UseRoslynCompiler=true /p:BuildNugetPackage=false /p:ToolNugetRuntimeId=$_ToolNugetRuntimeId
if [ $? -ne 0 ]; then
echo "Failed to build mscorlib."