Skip to content

Clang does not resolve path to linker executable using PATH env variable #79771

Closed
@artem

Description

@artem

For example, if you create a symbolic link from /usr/bin/lld-18 to /usr/local/bin/ld, GCC successfully hooks it up. However, Clang does not, and running clang -v reveals that it unconditionally calls /usr/bin/ld.

I'm not sure whether such behavior is intended, but at least it is very confusing and frustrating to discover.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions