[llvm-commits] [PATCH] [*san][CMake] Lit tests may run outside of "projects/compiler-rt"
Alexey Samsonov
samsonov at google.com
Wed Oct 24 07:14:55 PDT 2012
Thanks! Could you please verify that if one has correct llvm-config (corresponding to build tree for the same source tree) in PATH, then he can run "llvm-lit //path/to/compiler-rt/lib/*san/lit_tests/some_test.cc" ?
================
Comment at: compiler-rt/lib/asan/lit_tests/lit.cfg:17
@@ -16,3 +16,3 @@
# Figure out LLVM source root.
llvm_src_root = getattr(config, 'llvm_src_root', None)
if llvm_src_root is None:
----------------
Looks like you can use compiler_rt_src_root instead of llvm_src_root here as well (and replace config.llvm_src_root with config.compiler_rt_src_root in compiler-rt/lib/*san/lit_tests/lit.cfg.in as well).
If it's not found in config, then we'll grab llvm_src_root from llvm-config below.
http://llvm-reviews.chandlerc.com/D76
More information about the llvm-commits
mailing list