From ad785cb2d7f2ab80d2f6bfd7f05d4898807592ad Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 6 Jun 2013 13:28:37 +0000 Subject: Remove a bunch of copy-paste: use common config for sanitizer lit/unit tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183407 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/lit.common.unit.configured.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/lit.common.unit.configured.in') diff --git a/lib/lit.common.unit.configured.in b/lib/lit.common.unit.configured.in index c726bba2..1eac25b2 100644 --- a/lib/lit.common.unit.configured.in +++ b/lib/lit.common.unit.configured.in @@ -4,10 +4,15 @@ # Generic config options for all compiler-rt unit tests. config.target_triple = "@TARGET_TRIPLE@" config.llvm_src_root = "@LLVM_SOURCE_DIR@" +config.llvm_obj_root = "@LLVM_BINARY_DIR@" +config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@" config.llvm_build_mode = "@LLVM_BUILD_MODE@" +# LLVM tools dir and build mode can be passed in lit parameters, +# so try to apply substitution. try: + config.llvm_tools_dir = config.llvm_tools_dir % lit.params config.llvm_build_mode = config.llvm_build_mode % lit.params except KeyError,e: key, = e.args -- cgit v1.2.3