首页 > 解决方案 > ccache - 所有文件都是“无输入文件”

问题描述

我正在使用我这样编译的 ccache 版本 3.7.4: ccache compiler [compiler options]但它似乎不起作用

cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             0
cache hit rate                      0.00 %
no input file                         20
cleanups performed                     0
files in cache                         0
cache size                           0.0 kB
max cache size                       5.0 GB

唯一增加的字段是每个编译文件的“无输入文件”,来自 ccache 帮助页面,这意味着没有为编译器指定输入文件,这对我来说并不清楚。

ccache.conf 看起来像这样:


max_size = 5G
cache_dir = /local/ccache
temporary_dir = /tmp/ccache
umask = 002
direct_mode = true

我错过了什么?

编辑:发现我可以通过设置 CCACHE_LOGFILE 看到更多的调试。现在我看到每个文件的调试行:

File.cpp is not a regular file, not considering as input file
No input file found
Failed; falling back to running the real compiler

运行:stat File.cpp 文件:`File.cpp' 大小:14924 块:32 IO 块:1048576常规文件

标签: ccache

解决方案


推荐阅读