About local ccache #2412
Replies: 2 comments 3 replies
-
如果你打算动态切 ccache 状态,那就压根没必要设置
大部分情况下,项目都是各自独立的,默认放本地,互不冲突,也节省磁盘空间。。比如你有 10 个项目,其中只有 10% 的代码是通用共享的,那么你剩下的 90% 缓存都放全局,浪费空间,等你这个项目不用了,清理这些缓存也不好清理,放本地,便于隔离,也便于清理删除,直接 如果你这项目真的很多代码都需要共享编译,那么可以自己 xmake f --ccachedir= 配置,按需切到自己指定的全局路径。。 |
Beta Was this translation helpful? Give feedback.
-
project.policy("build.ccache") 这个策略,之前改动,里面默认配成了 true,默认值按理应该是 nil 才对,我改了下,更新到 dev 再试试 |
Beta Was this translation helpful? Give feedback.
-
关于 local ccache 有两个小疑惑:
Beta Was this translation helpful? Give feedback.
All reactions