Skip to content

Rust analyzer fails for Apple silicon #19518

Closed
@vedant-pandey

Description

@vedant-pandey

Rust analyzer fails to load on apple silicon with below error

  = note: clang: error: invalid linker name in argument '-fuse-ld=lld'
          
error: aborting due to previous error

on changing the rustflag value in config.toml to ld(apple's version of lld linker) it works

[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=ld"]

Rustlangs report on this - rust-lang/rust#39915 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions