Just to contribute the last piece of the puzzle:
/Zi is being set only as an option in Debug, as part of juce_recommended_config_flags — so one could always just not link against that target to get around it — except in this case, we don’t have control over what juceaide links to.
One way of framing: caching my Release build in CI/Windows is choking on Debug flags.
(That made me check into juceaide build times out of curiosity. And yes, building juceaide in Release takes 2x as long, as expected.)
My earlier mention of obj files and binary size is probably not relevant? The juce module files juceaide builds in Debug are used to prep things like binary data and AU preprocessor stuff — the actual juce headers built into my plugin binary are built in Release, where that flag doesn’t exist anyway.
On my own projects, I’ll just remove the /Zi flag from juce_recommended_config_flags on a fork.
I’m not quite sure what I’ll do about Pamplejuce. I don’t want to run it off a JUCE fork. And sccache doesn’t seem happy on plain MSVC without Ninja…