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

软件和网站开发以及相关技术探讨
回复
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

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

#1

帖子 科学之子 » 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
头像
astolia
论坛版主
帖子: 6396
注册时间: 2008-09-18 13:11

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

#2

帖子 astolia » 2016-05-30 15:07

你自己随便编译几个文件试一下,用ccache -s看看结果不就知道了
回复