jerry13/ccache — comment on commit 99cf5db51c1b4d74000fc8afa74b6b68a10054fe
File:  line 0
By jrosdahl:

I don't understand how it could work as currently implemented. For instance, will it handle a command like "CCACHE_SOURCEDIR=/src gcc -I/src/lib/includes -Ilocal/includes -c /src/lib/hello_world.c" (that is, with -I options for both directories under CCACHE_SOURCEDIR and under current working directory)?

Also, the CCACHE_SOURCEDIR addition feels like a quite complex solution to me. I suggest to instead extend CCACHE_BASEDIR so that you can specify several paths: CCACHE_BASEDIR=/path1/dir:/path2/dir (Windows version with semicolon instead of colon. That is, if any of the directories in CCACHE_BASEDIR is a prefix of the path, the base directory mechanism kicks in.