Skip to content

Slow linking when using lld #43

@sanju-naik

Description

@sanju-naik

I tried adding lld linker to our project using rules_apple_linker & our project link time almost doubled instead of decreasing.

I added it as per the readMe instructions

ios_application(
    name = "MyApp",
    deps = [... + ""@rules_apple_linker//:lld""],
 )

That's it.

With Default Xcode 14.3 linker, link time for one of our project was 8-10 seconds, but with lld it increased to ~20 seconds.

I tried reproducing this on sample with few Cocoapods dependencies but no luck, there link time is alsmot same for both native & lld, link time is in ms there so it didn't really show difference I believe.

Anything I am missing in the setup? If not any pointers on how to debug this?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions