c++ - Cache header files for make/g++ -


i working on large c++ code base , want speed compilation times. 1 thing know of library includes on network drive slows down things lot. if can make or else automatically cache them, either in /tmp, or ramdisk, expect improve compile times me quite bit. there way that? of course can copy them manually , set sync job every developer have on every box ever compile looking automated solution.

thanks!

of course. there lots , lots of ways. can have make rule copies things have people run make copylocal or whatever. fast people have remember it, , if libraries change lot annoying. can make rule copies things put prerequisite other target it's done on every build, first. take longer: copy step plus using local copies take longer total time using remote copies? knows?

you use tool ccache locally cache results of compilation, rather copying library headers. give lot more savings typical small incremental build , it's integrated build system, slow down "rebuild world" steps cache objects.

etc. question open-ended answerable.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -