how to use file cache with application?
Added by Tim S over 2 years ago
Hi,
I'm sure I'm doing something obviously wrong but I tried to create a sample jamfile with the following:
DEPCACHE = standard ; DEPCACHE.standard = .depcache ; FILECACHE = generic ; FILECACHE.generic.PATH = ./generic ; FILECACHE.generic.GENERATE = 1 ; FILECACHE.generic.USE = 1 ; C.Application helloworld : main.c ; UseFileCache helloworld.release.exe : generic ;
I see a .depcache file in my output directory but on file cache file. I've tried other paths as well but still no luck. Thanks for any help.
Replies (4)
RE: how to use file cache with application?
-
Added by Joshua Jensen over 2 years ago
It appears I no longer have the file cache hooked up for the C compiler. I'll see about reenabling it with the published /Z7 option for Visual C++. /Zi did not work in the file cache, because the .pdb files and .idb files could not be properly stored in the cache.
It did work with GCC, though, so I'm not sure how I let it slip.
-Josh
RE: how to use file cache with application?
-
Added by Tim S over 2 years ago
Thanks for the explanation. Can you explain how the file cache speeds up build times? I'm having a hard time understanding how it works since it seems that if the target were already build (say a .obj file build from a .cpp file) then what would be the benefit of getting it from the cache? Thanks.
RE: how to use file cache with application?
-
Added by Tim S over 2 years ago
I ask because in the docs it says it can greatly speed up incremental builds, although from my limited understanding it seems like it would only help eliminate the need for others to build the targets if it were on a network share?
RE: how to use file cache with application?
-
Added by Joshua Jensen over 2 years ago
A network cache does not usually help a single user. It primarily benefits multiple users. It can help a single user when checking out an older revision of the history and avoiding costly rebuilds.
(1-4/4)