summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorDaniel Podder <dapodd@microsoft.com>2017-06-07 16:41:31 -0500
committerGitHub <noreply@github.com>2017-06-07 16:41:31 -0500
commit1c216db85eab677921cbbe2d1d3d00a4ec322523 (patch)
treed342badce0a0649b9c479b0c3f2edb15378b1b7c /build.sh
parentef1cb89d9ddb8427d0c906a2c86ea39a579d9e53 (diff)
downloadcoreclr-1c216db85eab677921cbbe2d1d3d00a4ec322523.tar.gz
coreclr-1c216db85eab677921cbbe2d1d3d00a4ec322523.tar.bz2
coreclr-1c216db85eab677921cbbe2d1d3d00a4ec322523.zip
Only restore optdata for release builds (#12136)
Avoid restoring optdata during a non-release build to minimize work done by build.sh/cmd. Fix #12126
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index b4d660c1ac..4dc8f9c5f6 100755
--- a/build.sh
+++ b/build.sh
@@ -135,6 +135,9 @@ restore_optdata()
{
# if msbuild is not supported, then set __SkipRestoreOptData to 1
if [ $__isMSBuildOnNETCoreSupported == 0 ]; then __SkipRestoreOptData=1; fi
+ # we only need optdata on a Release build
+ if [[ "$__BuildType" != "Release" ]]; then __SkipRestoreOptData=1; fi
+
if [ $__SkipRestoreOptData == 0 ]; then
echo "Restoring the OptimizationData package"
"$__ProjectRoot/run.sh" sync -optdata