You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Is there any reason to disable LLVM_LTO for debug configuration? I do not notice any preceptible degradation in link time when enabled for debug configuratio.
Expected behavior
Link time flags should as close as possible between debug and release builds.
I do not notice any preceptible degradation in link time when enabled for debug configuratio.
I can't confirm this. I used mbgl-glfw to measure the link time. Linking Debug without LTO took 1.8 seconds, while linking with LTO took 83.9(!) seconds. When you tested this, did you recompile all files with -flto? If they don't have LTO information, the linker can't use it during linking so it'll likely not affect link time.
@kkaefer I tested mbgl-core, static, dynamic, iosapp targets. There is no need for configuration specific Link time options for these targets.
Also the recommended LTO option Is incremental by Apple. Have you tried using LLV_LTO:incremental with mbgl-glfw? The LLVM project uses this option itself for the final link step precisely because monolithic LTO is slow.
@jfirebaugh Having the same link time switches between release and debug bits would be preferable(esp a link time option that is not default.). But if there is a 50x degradation in link time then it’s not worth it. Thanks for looking into it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there any reason to disable LLVM_LTO for debug configuration? I do not notice any preceptible degradation in link time when enabled for debug configuratio.
Expected behavior
Link time flags should as close as possible between debug and release builds.
Actual behavior
LLVM_LTO is disabled for debug configuration.
Configuration
Mapbox SDK versions:
iOS/macOS versions:
Device/simulator models:
Xcode version:
The text was updated successfully, but these errors were encountered: