[all-commits] [llvm/llvm-project] 7ca8c2: [Driver] Fix detection of libc++ with empty sysroo...

Sam McCall via All-commits all-commits at lists.llvm.org
Fri Sep 22 13:29:39 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ca8c21af36acb117529e797b3d36e85a286ca47
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2023-09-22 (Fri, 22 Sep 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/unittests/Driver/ToolChainTest.cpp

  Log Message:
  [Driver] Fix detection of libc++ with empty sysroot. (#66947)

b1e3cd1d79443603dc003441e07cdd8d30bb7f26 dropped the leading slash here,
presumably unintentionally.

(I don't understand Driver well enough to know how/where this is
to be tested, but it broke clangd on any project that uses the
system-installed -stdlib=libc++ on a standard debian install)

More information about the All-commits mailing list