Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a46ea3d

Browse files
committed
Fix detected of supported Mono-versions.
According to akoeplinger, the required mono version is now 4.0.1.44 or higher. Build-script updated to reflect this.
1 parent b558a7f commit a46ea3d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ __referenceassemblyroot=$__monoroot/lib/mono/xbuild-frameworks
2323
__monoversion=$(mono --version | grep "version 4.[1-9]")
2424

2525
if [ $? -ne 0 ]; then
26-
echo "Mono 4.1 or later is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/unix-instructions.md for more details."
27-
exit 1
26+
# if built from tarball, mono only identifies itself as 4.0.1
27+
__monoversion=$(mono --version | egrep "version 4.0.1(.[0-9]+)?")
28+
if [ $? -ne 0 ]; then
29+
echo "Mono 4.0.1.44 or later is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/unix-instructions.md for more details."
30+
exit 1
31+
else
32+
echo "WARNING: Mono 4.0.1.44 or later is required to build corefx. Unable to asses if current version is supported."
33+
fi
2834
fi
2935

3036
if [ ! -e "$__referenceassemblyroot/.NETPortable" ]; then

0 commit comments

Comments
 (0)