Pass __IntermediatesDir to msbuild in build.sh
authorNate Amundson <naamunds@microsoft.com>
Fri, 16 Oct 2015 16:32:06 +0000 (11:32 -0500)
committerNate Amundson <naamunds@microsoft.com>
Fri, 16 Oct 2015 16:32:06 +0000 (11:32 -0500)
commit84bf87d4505d787649629a7af65f726a84602799
tree10f57210640a59953c8a3f54b849049bb23f13b2
parent8453d262925858e7bb31dfbe6d66896674b20efb
Pass __IntermediatesDir to msbuild in build.sh

Currently, building coreclr x-plat fails if not running as root due to
the build trying to copy files to "/ToolRuntime".  The issue is that
$(IntermediatesOutputRootPath) is not set when running from build.sh,
and testruntime.targets in buildtools defines ToolRuntimePath as
"$(IntermediateOutputRootPath)ToolRuntime\".  The fix is to pass
__IntermediatesDir to msbuild in build_mscorlib, which results in
$(IntermediatesOutputRootPath) being properly set.

This change also adds a skipcoreclr flag to allow the user to skip the
CoreCLR part of the build, similar to the existing skipmscorlib flag.

Commit migrated from https://github.com/dotnet/coreclr/commit/18e80622347e41cc53ca2ffa880a19298edfd60d
src/coreclr/build.sh