Skip to content

Commit ddeca87

Browse files
authored
Hardcode IsTrimed to 'false' for Unity (#4930)
1 parent 7c80a90 commit ddeca87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Sentry/Internal/AotHelper.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ internal static class AotHelper
1212

1313
static AotHelper()
1414
{
15-
IsTrimmed = CheckIsTrimmed();
15+
IsTrimmed =
16+
#if SENTRY_UNITY
17+
false;
18+
#else
19+
CheckIsTrimmed();
20+
#endif
1621
}
1722

1823
[UnconditionalSuppressMessage("Trimming", "IL2026: RequiresUnreferencedCode", Justification = AvoidAtRuntime)]

0 commit comments

Comments
 (0)