How to enable linker warning "ignore hint of linker optimization" in Xcode?

A Google search to “ignore the hint of linker optimization” shows almost nothing. NOTE: "Optimization" is an accurate spelling :)

I use the third-party WebRTC library (libjingle_peerconnection) from Pristine in one of my applications, and I get warnings when I create for my iPhone 6. I am not sure if this warning will appear for other devices, however, it does not appear when I build for simulator.

I have exactly 68 of these bad guys in my build release:

ld: warning: ignoring link optimizer links to _cftmdl_128_neon + 0xF0, because ldrInfoC.offset == 0

I am not sure that I should notify the attendants, or if this is something that I can decide on my own.

+4
source share
1 answer

If you build the WebRTC library yourself using build scripts, warnings are generated due to a missing parameter in GYP_DEFINES.

To fix the warnings, you need to compile the WebRTC library again with the parameter clang_xcode=1in the setting GYP_DEFINES, as shown below (example only):

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

You can learn more about the problem here on the Chromium forums: https://bugs.chromium.org/p/webrtc/issues/detail?id=5182

-

WebRTC WebRTC , , , .

+1

Source: https://habr.com/ru/post/1624513/


All Articles