[PATCH] D77184: Make it possible for lit.site.cfg to contain relative paths, and use it for llvm and clang

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 08:28:33 PDT 2020


thakis added a comment.

In D77184#1961220 <https://reviews.llvm.org/D77184#1961220>, @rsmith wrote:

> In D77184#1961214 <https://reviews.llvm.org/D77184#1961214>, @rsmith wrote:
>
> > In D77184#1961208 <https://reviews.llvm.org/D77184#1961208>, @rsmith wrote:
> >
> > > This has broken my ability to run the `check-clang` target on Linux. There are symlinks in the path from which I run my builds, and this patch is computing incorrect relative paths in that situation.
> >
> >
> > This patch appears to fix the problem:
>
>
> Turns out that's only a partial fix (it fixes `ninja clang-check` but not the general problem). Running `lit` from inside the source directory is still broken. Eg, this used to work:
>
>   clang/test$ $BUILDDIR/bin/llvm-lit SemaCXX/constant-expression.cpp
>
>
> ... and doesn't work any more because the relative paths in `lit.site.cfg.py` don't seem to resolve to the right places. Please can you fix or revert?


Can you describe your symlink setup in enough detail that I can recreate it locally please?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77184/new/

https://reviews.llvm.org/D77184





More information about the llvm-commits mailing list