summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMatt Ellis <matell@microsoft.com>2016-05-27 14:59:43 -0700
committerMatt Ellis <matell@microsoft.com>2016-05-31 11:42:40 -0700
commit992129e95ee164f6aff8f02d7b38c953ffd202dd (patch)
tree9486f7f51810ac1da25d1872336823a26ed4481e /build.sh
parent06a1826fe80c496570b9732946804722cf805692 (diff)
downloadcoreclr-992129e95ee164f6aff8f02d7b38c953ffd202dd.tar.gz
coreclr-992129e95ee164f6aff8f02d7b38c953ffd202dd.tar.bz2
coreclr-992129e95ee164f6aff8f02d7b38c953ffd202dd.zip
Support building on all supported distros
With the updated buildtools, we should now be able to build on all the supported distros: - Centos 7 - Fedora 23 - openSUSE 13.2 - RHEL 7.2 - Ubuntu 14.04 - Ubuntu 16.06 I also cleaned up how we compute the RID for the tools to restore.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh31
1 files changed, 24 insertions, 7 deletions
diff --git a/build.sh b/build.sh
index 85d9211f69..61ee3c16e6 100755
--- a/build.sh
+++ b/build.sh
@@ -211,13 +211,30 @@ isMSBuildOnNETCoreSupported()
if [ "$__HostArch" == "x64" ]; then
if [ "$__HostOS" == "Linux" ]; then
- if [ "$__DistroRid" == "ubuntu.14.04-x64" ]; then
- __isMSBuildOnNETCoreSupported=1
- elif [ "$__DistroRid" == "rhel.7.2-x64" ]; then
- __isMSBuildOnNETCoreSupported=1
- elif [ "$__DistroRid" == "debian.8-x64" ]; then
- __isMSBuildOnNETCoreSupported=1
- fi
+ case "$__DistroRid" in
+ "centos.7-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ "debian.8-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ "fedora.23-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ "opensuse.13.2-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ "rhel.7.2-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ "ubuntu.14.04-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ "ubuntu.16.04-x64")
+ __isMSBuildOnNETCoreSupported=1
+ ;;
+ *)
+ esac
elif [ "$__HostOS" == "OSX" ]; then
__isMSBuildOnNETCoreSupported=1
fi