SCons:如果目标是在其他存储库中构建的,如何创建到另一个存储库目标的链接
当我将 Repository
添加到 SConstruct
文件时 (link),如果我的存储库中的任何目标已在另一个存储库中构建(并且依赖项未更改),则 SCons< /code> 将不会构建目标——这真的很酷。 不幸的是,我有一些工具依赖于将目标放置在某个位置。 当 SCons 决定不在本地构建(因为其他存储库已经构建了目标)时,如何在当前存储库中创建指向此其他存储库目标的链接?
编辑: 看起来 SCons
有一个“本地”功能,它将文件从其他存储库复制到本地存储库(链接)。 我真正需要的是软链接,因为这些目标很大并且有很多冗余。
When I add a Repository
to a SConstruct
file (link), if any target in my repository has been built in this other repository (and the dependencies haven't changed), then SCons
will not build the target -- which is really cool. Unfortunately, I have some tools which rely on the targets being placed in a certain location. How can I create a link in my current repository to this other repository's target when SCons
decides to not build locally because the other repository already has the target built?
EDIT:
It looks like SCons
has a 'Local' function which will copy a file from the other repository to the local repository (link). What I really need is a soft-link, because these targets are big and there is a lot of redundancy.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论