sync ports with The Matrix
This commit is contained in:
parent
cbcec355c0
commit
c376d85ea0
190 changed files with 4781 additions and 1132 deletions
|
@ -0,0 +1,18 @@
|
|||
add MONO_FORCE_COMPAT env var for backwards compatibility with some
|
||||
routines that were abandoned with the update to mono 5 upstream
|
||||
This may lead to undefined behavior and should only be used in
|
||||
well-defined cases.
|
||||
|
||||
Index: external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/ArraySortHelper.cs
|
||||
--- external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/ArraySortHelper.cs.orig
|
||||
+++ external/corert/src/System.Private.CoreLib/shared/System/Collections/Generic/ArraySortHelper.cs
|
||||
@@ -41,7 +41,8 @@ namespace System.Collections.Generic
|
||||
|
||||
internal static void ThrowOrIgnoreBadComparer(object comparer)
|
||||
{
|
||||
- throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer));
|
||||
+ if (Environment.GetEnvironmentVariable ("MONO_FORCE_COMPAT") == null)
|
||||
+ throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer));
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue