summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2019-02-04 19:00:39 -0800
committerBruce Forstall <brucefo@microsoft.com>2019-02-04 19:00:39 -0800
commitf471342cc072546edf84bb110aa3d2765ad2bb76 (patch)
tree8b535f2cbe5c81b43ec9572d96abeca2938df7df /build.sh
parent7e20b6fa7b2253511b6f0a7d76c955360e040df6 (diff)
downloadcoreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.gz
coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.bz2
coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.zip
Configure MSBuild debug path and save any logs
We have had many problems in the CI with MSBuild failing, and not capturing the failure logs. See https://github.com/dotnet/coreclr/issues/20236. So, for all msbuild invocations, set MSBUILDDEBUGPATH to a new, distinguished, subdirectory of the bin\Logs directory, named "MsbuildDebugLogs". Change the CI to upload any log files found there.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 536dbe8f5b..ef50b3e8af 100755
--- a/build.sh
+++ b/build.sh
@@ -140,6 +140,7 @@ setup_dirs()
mkdir -p "$__RootBinDir"
mkdir -p "$__BinDir"
mkdir -p "$__LogsDir"
+ mkdir -p "$__MsbuildDebugLogsDir"
mkdir -p "$__IntermediatesDir"
if [ $__CrossBuild == 1 ]; then
@@ -996,6 +997,7 @@ fi
# Set dependent variables
__LogsDir="$__RootBinDir/Logs"
+__MsbuildDebugLogsDir="$__LogsDir/MsbuildDebugLogs"
# init the host distro name
initHostDistroRid
@@ -1047,6 +1049,9 @@ initTargetDistroRid
# Make the directories necessary for build if they don't exist
setup_dirs
+# Set up the directory for MSBuild debug logs.
+export MSBUILDDEBUGPATH="${__MsbuildDebugLogsDir}"
+
# Check prereqs.
check_prereqs