有没有办法为纯粹是其他静态库聚合的静态库保留调试信息?
我有一个构建静态库的项目,该静态库纯粹是其他静态库的聚合。这是通过将输入库作为文件添加到项目中来实现的。但是,即使调试信息可用于输入库,也没有可用于输出聚合库。如果在链接到另一个二进制文件时聚合库需要调试信息,则必须修改构建该二进制文件的项目以链接到聚合库的输入库而不是聚合库本身。
有没有办法使调试信息可用于以这种方式创建的聚合库?或者应该以不同的方式创建聚合库(不将输入库作为文件添加到项目中)?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论