diff options
author | Omair Majid <omajid@redhat.com> | 2018-08-13 15:38:37 -0400 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2018-08-13 21:38:37 +0200 |
commit | cba21515787850baaf02fbbd550a5267a8a4f4cf (patch) | |
tree | d9023c6d7444ebcba3140074bf9f0ff6e80b37b0 /build.sh | |
parent | 1a5e7515ac7d128518b7ec8ce34f632f5b368e66 (diff) | |
download | coreclr-cba21515787850baaf02fbbd550a5267a8a4f4cf.tar.gz coreclr-cba21515787850baaf02fbbd550a5267a8a4f4cf.tar.bz2 coreclr-cba21515787850baaf02fbbd550a5267a8a4f4cf.zip |
Add a skipmanaged option to build.sh (#19111)
This option is the opposite of -msbuildonunsupportedplatform, and an
managed version of of -skipnative.
This is useful for bootstrapping on new Linux/x64 distributions, where
dotnet may not work (yet) but coreclr will try and use it anyway,
failing the bootstrap scripts.
See also https://github.com/dotnet/source-build/issues/663 for
additional background information.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -26,7 +26,7 @@ export PYTHON usage() { - echo "Usage: $0 [BuildArch] [BuildType] [-verbose] [-coverage] [-cross] [-clangx.y] [-ninja] [-configureonly] [-skipconfigure] [-skipnative] [-skipmscorlib] [-skiptests] [-stripsymbols] [-ignorewarnings] [-cmakeargs] [-bindir]" + echo "Usage: $0 [BuildArch] [BuildType] [-verbose] [-coverage] [-cross] [-clangx.y] [-ninja] [-configureonly] [-skipconfigure] [-skipnative] [-skipmanaged] [-skipmscorlib] [-skiptests] [-stripsymbols] [-ignorewarnings] [-cmakeargs] [-bindir]" echo "BuildArch can be: -x64, -x86, -arm, -armel, -arm64" echo "BuildType can be: -debug, -checked, -release" echo "-coverage - optional argument to enable code coverage build (currently supported only for Linux and OSX)." @@ -42,6 +42,7 @@ usage() echo "-configureonly - do not perform any builds; just configure the build." echo "-skipconfigure - skip build configuration." echo "-skipnative - do not build native components." + echo "-skipmanaged - do not build managed components." echo "-skipmscorlib - do not build mscorlib.dll." echo "-skiptests - skip the tests in the 'tests' subdirectory." echo "-skipnuget - skip building nuget packages." @@ -388,6 +389,11 @@ isMSBuildOnNETCoreSupported() return fi + if [ $__SkipManaged == 1 ]; then + __isMSBuildOnNETCoreSupported=0 + return + fi + if [ "$__HostArch" == "x64" ]; then if [ "$__HostOS" == "Linux" ]; then __isMSBuildOnNETCoreSupported=1 @@ -631,6 +637,7 @@ __PgoOptimize=1 __IbcTuning="" __ConfigureOnly=0 __SkipConfigure=0 +__SkipManaged=0 __SkipRestore="" __SkipNuget=0 __SkipCoreCLR=0 @@ -810,6 +817,10 @@ while :; do __DoCrossArchBuild=1 ;; + skipmanaged|-skipmanaged) + __SkipManaged=1 + ;; + skipmscorlib|-skipmscorlib) __SkipMSCorLib=1 ;; |