![]() |
ccache
how can i use ccache to MAKE my code?
my make file looks like: Code:
FC=~/gfortran/bin/gfortran |
When you have ccache installed, it installs a program called gcc, but it is not in the same place as the regular gcc. You cn either set the PATH so that th ccache gcc is found before the normal gcc, or you can just hard-code the full path to the ccache version of the program in your Makefile.
Not sure what distro you are on but here's how to find out the path the ccache gcc on a debian based system (the ccache package is called simply 'ccache'): Code:
$ dpkg --listfiles ccache |grep '/gcc$'Code:
/usr/lib/ccache/gccCode:
CC=/usr/lib/ccache/gcc |
and what about ccache-ing gfortran?
|
Never done it, don't know.
|
| All times are GMT -5. The time now is 01:44 AM. |