如何解决链接器警告“忽略链接器优化提示".在XCode中? [英] How do I resolve linker warning "ignoring linker optimzation hint at" in XCode?

查看:92
本文介绍了如何解决链接器警告“忽略链接器优化提示".在XCode中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌搜索忽略链接器优化提示"几乎没有结果.注意:优化"是确切的拼写:)

A google search for "ignoring linker optimzation hint" practically turns up nothing. NOTE: "optimzation" is the exact spelling :)

我正在其中一个应用程序中使用Pristine的第三方WebRTC库(libjingle_peerconnection),并且在为iPhone 6进行构建时收到警告.我不确定是否会为其他设备弹出此警告,但是,当我为模拟器构建时,它不会出现.

I'm using a 3rd party WebRTC library (libjingle_peerconnection) from Pristine in one of my apps and I get warnings when I build for my iPhone 6. I'm not sure if this warning will pop up for other devices, however, it does not appear when I build for the simulator.

我的构建输出中恰好有68个这些坏男孩:

I have exactly 68 of these bad boys in my build output:

ld:警告:由于ldrInfoC.offset == 0,忽略了_cftmdl_128_neon + 0xF0上的链接器优化提示

ld: warning: ignoring linker optimzation hint at _cftmdl_128_neon+0xF0 because ldrInfoC.offset == 0

我不确定是否应该通知维护者,或者这是我自己可以解决的事情.

I'm not sure if I should notify the maintainers or if this is something I can resolve myself.

推荐答案

如果您使用构建脚本自行编译WebRTC库,则会由于GYP_DEFINES中缺少参数而生成警告.

If you're compiling the WebRTC library by yourself using build scripts, the warnings are generated because of a missing parameter in GYP_DEFINES.

为了解决警告,需要使用GYP_DEFINES设置中的参数clang_xcode=1再次编译WebRTC库,如下所示(仅作为示例):

In order to fix the warnings, the WebRTC library needs to be compiled again with the parameter clang_xcode=1 in the GYP_DEFINES setting, like below (only an example):

export GYP_DEFINES="$GYP_DEFINES OS=ios target_arch=arm64 clang_xcode=1"

有关此问题的更多信息,请参见Chromium论坛: https://bugs.chromium.org/p/webrtc/issues/detail ?id = 5182

More about the issue can be found here, on the Chromium forums: https://bugs.chromium.org/p/webrtc/issues/detail?id=5182

-

如果您不是自己编译WebRTC库,而是从第3方来源安装WebRTC库,那么我不相信有解决方法,因为警告来自静态库.

If you're not compiling the WebRTC library yourself, and instead installing the WebRTC library from a 3rd party source, I don't believe there is a fix as the warnings are stemming from the static library.

这篇关于如何解决链接器警告“忽略链接器优化提示".在XCode中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆