Il2cpp never finishes. how to tell what clang is doing?

it used to take 20 or minutes to do an il2cpp build. on 2017.4.1f1 and 2018.1.0f2 il2cpp builds have stopped completing. it will just sit there on this forever:

3503036--279324--upload_2018-5-19_18-13-28.png

clang is chewing up a core, but not finishing it’s work:

3503036--279326--upload_2018-5-19_18-14-39.png

i have let it run for more than 24 hours, tried reimporting all, etc. it never finishes. i would love to know what the hell clang is chewing on so that whatever the problem is can be corrected.

i found the culprit. a generated function which is about 54000 unrolled lines long. it doesn’t do anything fancy, just plugs some data into an array in a linear fashion. guessing clang chokes forever because of it’s giantness. when reduced to 4000 lines, clang completed the compilation normally.

it would have been much easier to find it if there was a way to know what file clang was choking on, however…