Skip to content

Commit 910eea6

Browse files
authored
Merge pull request #1003 from Unity-Technologies/unity-master-unity-aot
Only use the AOT code path for the AOT profile
2 parents f763f4a + c839e04 commit 910eea6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mcs/class/corlib/System.Reflection/MonoProperty.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,7 @@ public override object GetValue (object obj, object[] index)
378378
{
379379
if (index == null || index.Length == 0) {
380380
/*FIXME we should check if the number of arguments matches the expected one, otherwise the error message will be pretty criptic.*/
381-
// Once we ship the changes to make il2cpp always use the unityaot profile, we should change
382-
// this define to be UNITY_AOT. for now though, we'll take the AOT-friendly code path in all profiles.
383-
#if !FULL_AOT_RUNTIME && !UNITY
381+
#if !FULL_AOT_RUNTIME && !UNITY_AOT
384382
if (cached_getter == null) {
385383
MethodInfo method = GetGetMethod (true);
386384
if (!DeclaringType.IsValueType && !method.ContainsGenericParameters) { //FIXME find a way to build an invoke delegate for value types.

0 commit comments

Comments
 (0)