Skip to content

Commit 83c7d9f

Browse files
author
Josh Peterson
committed
Indicate that System.Reflection.Emit is not supported in the AOT profile
1 parent 7444c76 commit 83c7d9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mcs/class/corlib/corefx/RuntimeFeature.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ namespace System.Runtime.CompilerServices
22
{
33
partial class RuntimeFeature
44
{
5+
#if UNITY_AOT
6+
public static bool IsDynamicCodeSupported => false;
7+
public static bool IsDynamicCodeCompiled => false;
8+
#else
59
// https://github.com/dotnet/coreclr/blob/397aaccb5104844998c3bcf6e9245cc81127e1e2/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeFeature.CoreCLR.cs#L9-L10
610
public static bool IsDynamicCodeSupported => true;
711
public static bool IsDynamicCodeCompiled => true;
12+
#endif
813
}
914
}

0 commit comments

Comments
 (0)