有没有办法为纯粹是其他静态库聚合的静态库保留调试信息?

发布于 2024-09-08 13:03:12 字数 215 浏览 1 评论 0原文

我有一个构建静态库的项目,该静态库纯粹是其他静态库的聚合。这是通过将输入库作为文件添加到项目中来实现的。但是,即使调试信息可用于输入库,也没有可用于输出聚合库。如果在链接到另一个二进制文件时聚合库需要调试信息,则必须修改构建该二进制文件的项目以链接到聚合库的输入库而不是聚合库本身。

有没有办法使调试信息可用于以这种方式创建的聚合库?或者应该以不同的方式创建聚合库(不将输入库作为文件添加到项目中)?

I have a project that builds a static library that is purely an aggregate of other static libraries. This is achieved by adding the input libraries to the project as files. However, even if debug information is available for the input libraries, there is none available for the output aggregate library. If debug information is required for the aggregate library when linked into another binary, the project that builds that binary has to be modified to link with the aggregate library's input libraries instead of the aggregate library itself.

Is there a way to make debug information available for aggregate libraries created in this way? Or should the aggregate library be created in a different way (not adding the input libraries to the project as files)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文