[all-commits] [llvm/llvm-project] 8918dd: [Clang][test] Fix space in ld path (#200012)

Michael Kruse via All-commits all-commits at lists.llvm.org
Fri May 29 10:35:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8918dd8b4dc646fa9707bbfedd4efe5116abe971
      https://github.com/llvm/llvm-project/commit/8918dd8b4dc646fa9707bbfedd4efe5116abe971
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M clang/test/Driver/freebsd.c

  Log Message:
  -----------
  [Clang][test] Fix space in ld path (#200012)

The driver resolves the path to the linker ("ld") to the absolute path.
Microsoft Visual Studio comes with its own instance of `ld.lld` which it
installs under

"c:\\program files\\microsoft visual studio\\2022\\community\\vc\\tools\\llvm\\x64\\bin\\ld.lld.exe"

In the developer command prompt, this path is added to PATH where the
Clang driver finds it. However, this path does not match regular
expression `"{{[^" ]*}}ld{{[^" ]*}}"` used by the MIPS test because the
path contains spaces.

Fix the test failure by matching only the the trailing component after
`ld`. Matching the prefix of the path is unique to the MIPS test, this
is not done with tests for other platforms.



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