зеркало из https://github.com/mono/ikvm-fork.git
Disabled the use of DynamicMethod when running on Mono, because as of Mono 1.2.5.1 its DynamicMethod implementation is too broken for us.
This commit is contained in:
Родитель
d36bf2ea5a
Коммит
abef13a3d9
|
@ -124,12 +124,13 @@ using sndResolverConfigurationImpl = sun.net.dns.ResolverConfigurationImpl;
|
|||
#if WHIDBEY
|
||||
sealed class DynamicMethodSupport
|
||||
{
|
||||
internal const bool Enabled = true;
|
||||
// MONOBUG as of Mono 1.2.5.1, DynamicMethod is too broken to be used
|
||||
internal static readonly bool Enabled = Type.GetType("Mono.Runtime") == null;
|
||||
}
|
||||
#else
|
||||
sealed class DynamicMethodSupport
|
||||
{
|
||||
internal static readonly bool Enabled = Environment.Version.Major >= 2;
|
||||
internal static readonly bool Enabled = Environment.Version.Major >= 2 && Type.GetType("Mono.Runtime") == null;
|
||||
}
|
||||
|
||||
sealed class DynamicMethod
|
||||
|
|
Загрузка…
Ссылка в новой задаче