What happened
When creating a build (only Android tested) the "Compiling Cpp for libil2cpp (arm64)" phase of the build takes multiple minutes even in a blank projekt like this. It used to be in the range of 5-30 seconds, even for fully fledged games.
All CPU cores are at 100% utilization.
How can we reproduce it using the example you attached
Creating an Android .aab build.
The issue started to appear a couple of months ago, but back then it did not happen during every build. Most of the times the Compiling Cpp phase only took a few seconds and it only sometimes took multiple minutes, which is why I did not submit a bug report back then. Note that it never took a duration in between, i.e. it felt like a coin flip between fast and slow execution, but within both groups, there is not a variation of the duration.
Nowadays building always takes longer, in all 5 Unity projects I am working with.
Bug report sent.
What happened When creating a build (only Android tested) the "Compiling Cpp for libil2cpp (arm64)" phase of the build takes multiple minutes even in a blank projekt like this. It used to be in the range of 5-30 seconds, even for fully fledged games. All CPU cores are at 100% utilization.
How can we reproduce it using the example you attached Creating an Android .aab build.
The issue started to appear a couple of months ago, but back then it did not happen during every build. Most of the times the Compiling Cpp phase only took a few seconds and it only sometimes took multiple minutes, which is why I did not submit a bug report back then. Note that it never took a duration in between, i.e. it felt like a coin flip between fast and slow execution, but within both groups, there is not a variation of the duration. Nowadays building always takes longer, in all 5 Unity projects I am working with.
There are also a couple of forum/discussion threads of people with the same issue. See e.g. here: https://discussions.unity.com/t/compiling-cpp-for-libil2cpp-takes-much-longer-suddenly/927288
Attached is also a buildreport.json file from a different project, where the Compiling Cpp phase took a huge portion of the entire build process.