分页: 1 / 1

ccache手册中这段描述是什么意思?

发表于 : 2016-05-30 1:20
科学之子
ccache手册中这段描述是什么意思?
Only knows how to cache the compilation of a single C/C++/Objective-C/Objective-C++ file. Other types of compilations (multi-file compilation, linking, etc) will silently fall back to running the real compiler.
意思是类似

代码: 全选

gcc ./*.c -Wall -Werror
这样的命令用ccache无法缓存,没有提速效果?
只有

代码: 全选

gcc single.c
之类的针对单个文件的编译命令才有效果?
描述来源:
http://ccache.samba.org/manual.html

Re: ccache手册中这段描述是什么意思?

发表于 : 2016-05-30 15:07
astolia
你自己随便编译几个文件试一下,用ccache -s看看结果不就知道了