【发布时间】:2021-10-02 22:02:30
【问题描述】:
scons 如何缓存扫描 C 代码的依赖项?
问题的上下文是我想在其他语言中使用相同的技术。
现在我必须做这样的事情:
env.Depends(target = 'lib/PROG1.so', dependency = getDependencies('src/PROG1.xxx'))
其中getDependencies() 返回依赖项列表。但这将在每次运行时扫描依赖项。我想缓存这些结果,并且仅在源文件更改时重新扫描。
【问题讨论】:
标签: scons