diff options
author | Nico Weber <thakis@chromium.org> | 2020-04-04 20:25:27 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2020-04-06 09:18:23 -0400 |
commit | d4638cbad7e67ed5be5ac5491c47c3c3d5659953 (patch) | |
tree | 5a560c50a8ec3f5f9072a6504f5ad2bbb10b1357 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | a41cd6bb897b71722d1919ce2c41010fa8d462c1 (diff) | |
download | llvm-d4638cbad7e67ed5be5ac5491c47c3c3d5659953.zip llvm-d4638cbad7e67ed5be5ac5491c47c3c3d5659953.tar.gz llvm-d4638cbad7e67ed5be5ac5491c47c3c3d5659953.tar.bz2 |
Make paths in generated llvm-lit relative as well.
This builds on top of D77184. With this, I can rename my build directory
to a different name and `bin/llvm-lit ../llvm-project/clang/test
../llvm-project/llvm/test` still succeeds.
I haven't tried copying the build dir to a different machine to run
tests there yet, but I tried something like it a few months ago and it
worked back then.
Changes:
- Make configure_lit_site_cfg() store the main / generated config pair
interleaved in the LLVM_LIT_CONFIG_FILES list and postpone converting
it to python code to llvm-lit's CMakeList.
- Pull the relpath code into a new function make_paths_relative() and
call that in llvm-lit's CMakeList, prior to converting the list to
python code.
- Pull the path() function into a variable and use that in llvm-lit's
CMakeList too.
Differential Revision: https://reviews.llvm.org/D77496
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions