Advertisement

Long build times.

Started by September 10, 2020 07:38 PM
20 comments, last by SuperVGA 4 years ago

hplus0603 said:

SuperVGA said:
Please elaborate on how you'd go about reducing linking time by increasing RAM or cores (Or machines)?.

Sorry, I didn't see this part until now. As I said in the other answer: Split into .so files, use weak (late-resolved) symbols. There is still a final linker phase where they are all collected, but with weak symbols, that's pretty fast. (At the expense of making starting the game slower …

That's a great idea - I'll try that. Alternatively, perhaps it would be possible to build libraries for various groupings (namespaces or by directory perhaps) so there are fewer things to link. At the moment I have an .o-file for every cpp file, hundreds of them.
Is it possible that fewer, larger ones would link faster?

This topic is closed to new replies.

Advertisement