Skip to content

Commit 6c75dea

Browse files
authored
fix: keep previously set IL2CPP compiler arguments (i.e append instead of overwriting) (#972)
1 parent eda26ae commit 6c75dea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixes
66

77
- Don't access Unity `AnalyticsSessionInfo.userId` on unknown platforms ([#971](https://github.com/getsentry/sentry-unity/pull/971))
8+
- Keep previously set IL2CPP compiler arguments (i.e append instead of overwriting) ([#972](https://github.com/getsentry/sentry-unity/pull/972))
89

910
### Dependencies
1011

src/Sentry.Unity.Editor/Il2CppOption.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ internal class Il2CppOption : IPreprocessBuildWithReport
1212
public void OnPreprocessBuild(BuildReport report)
1313
{
1414
var arguments = "--emit-source-mapping";
15-
Debug.Log($"Setting additional IL2CPP arguments = '{arguments}' for platform {report.summary.platform}");
16-
PlayerSettings.SetAdditionalIl2CppArgs(arguments);
15+
Debug.Log($"Setting additional IL2CPP arguments '{arguments}' for platform {report.summary.platform}");
16+
PlayerSettings.SetAdditionalIl2CppArgs(PlayerSettings.GetAdditionalIl2CppArgs() + $" {arguments}");
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)