[all-commits] [llvm/llvm-project] 8ef122: [LinkerWrapper] Add support for --no-canonical-pre...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Thu Mar 5 06:47:21 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ef122433149b10be71f01b9c5fafc8e269b1a63
      https://github.com/llvm/llvm-project/commit/8ef122433149b10be71f01b9c5fafc8e269b1a63
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/hip-options.hip
    A clang/test/Driver/linker-wrapper-canonical-prefixes.c
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
    M clang/tools/clang-linker-wrapper/LinkerWrapperOpts.td

  Log Message:
  -----------
  [LinkerWrapper] Add support for --no-canonical-prefixes

This is necessary to support build environments where the
compiler/associated tools are actually just symlinks into a CAS. Without
this, we try and resolve binaries relative to the real path of
clang-linker-wrapper, which is usually in a directory prefixed with the
first couple characters of a SHA digest and named with a SHA digest. We
also need to ensure that we propagate --no-canonical-prefixes to sub
clang invocations so that clang is able to resolve lld in such
environments.

Reviewers: jhuber6, Artem-B, sarnex

Pull Request: https://github.com/llvm/llvm-project/pull/184160



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list