summaryrefslogtreecommitdiff
path: root/build-test.sh
diff options
context:
space:
mode:
authorTom Deseyn <tom.deseyn@gmail.com>2017-06-07 08:55:08 (GMT)
committerTom Deseyn <tom.deseyn@gmail.com>2017-06-07 08:55:08 (GMT)
commit16ef19c51b19907e589155e8f9d24b3247c8745b (patch)
tree01d36de3eb5bf0ba7bd39590129cc14446c4bb84 /build-test.sh
parent48bc0fa682d6e45c4d9b27ecc460520b44094bc0 (diff)
downloadcoreclr-16ef19c51b19907e589155e8f9d24b3247c8745b.zip
coreclr-16ef19c51b19907e589155e8f9d24b3247c8745b.tar.gz
coreclr-16ef19c51b19907e589155e8f9d24b3247c8745b.tar.bz2
Fix FreeBSD build
Diffstat (limited to 'build-test.sh')
-rwxr-xr-xbuild-test.sh22
1 files changed, 14 insertions, 8 deletions
diff --git a/build-test.sh b/build-test.sh
index ee296a3..0ebee80 100755
--- a/build-test.sh
+++ b/build-test.sh
@@ -47,15 +47,21 @@ isMSBuildOnNETCoreSupported()
return
fi
- __isMSBuildOnNETCoreSupported=1
- UNSUPPORTED_RIDS=("*-arm" "*-arm64" "*-x86" "debian.9-x64" "ubuntu.17.04-x64")
- for UNSUPPORTED_RID in "${UNSUPPORTED_RIDS[@]}"
- do
- if [[ "$__HostDistroRid" == $UNSUPPORTED_RID ]]; then
- __isMSBuildOnNETCoreSupported=0
- break
+ if [ "$__HostArch" == "x64" ]; then
+ if [ "$__HostOS" == "Linux" ]; then
+ __isMSBuildOnNETCoreSupported=1
+ UNSUPPORTED_RIDS=("debian.9-x64" "ubuntu.17.04-x64")
+ for UNSUPPORTED_RID in "${UNSUPPORTED_RIDS[@]}"
+ do
+ if [ "$__HostDistroRid" == "$UNSUPPORTED_RID" ]; then
+ __isMSBuildOnNETCoreSupported=0
+ break
+ fi
+ done
+ elif [ "$__HostOS" == "OSX" ]; then
+ __isMSBuildOnNETCoreSupported=1
fi
- done
+ fi
}
build_Tests()