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

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 11:22:44 PDT 2020


ldionne added a comment.

Just trying to wrap my head around this. Basically, this makes `lit.cfg` files relocatable, however doesn't everything else need to be relocatable too for anything to work? For example, if you set the rpath on some executable, that needs to be relative too, right?

So, assuming this patch, the basic idea is:

1. Build on machine A
2. Copy the whole build directory and LLVM tree to machine B
3. Run `lit -sv <whatever>` on machine B -- everything should work if all paths in `lit.cfg` and all paths embedded in build artifacts are relative to the build directory.

It also requires that machine B is able to execute all the tests, so for example for the Clang test suite it needs to be able to run Clang, run FileCheck, etc. Drawing a parallel with the libc++ test suite, this would require machine B to be able to build executables for machine B (from the `.pass.cpp` sources) and run them on machine B.

Is that the idea?


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

https://reviews.llvm.org/D77184





More information about the llvm-commits mailing list