Claude authored PCH & Unity Builds#6381
Claude authored PCH & Unity Builds#6381garrettjoecox wants to merge 1 commit intoHarbourMasters:developfrom
Conversation
|
Build improvements always welcome HarbourMasters/2ship2harkinian#1358 is all I can find looking up pch on 2ship, & not seeing similar pattern in CMakeLists.txt. Is there a different PR to use for comparison? |
|
I think it would be more worth it to fix the header bloat problem first. Using something like https://include-what-you-use.org |
That's the one, though I realize that was just PCH not unity builds, going to be trying unity builds on 2ship now |
|
I'd prefer to start with just PCH, unity builds seem to have some drawbacks I'm hesitant towards, & think louist's suggestion to clean up header usage first is something I can look into |
|
There's also the idea to use C++ 20 modules when possible, that'd require a lot more work but it's worth keeping in mind. |
That is an option but they break edit and continue and I don't think they are fully supported by all platforms yet. |
Take or leave it, not really something I put effort into and I don't fully understand the downsides of PCH or Unity builds, but it's something that has gone smoothly on 2ship for a while now.
Completely fresh build on my macbook m4
Build Artifacts