diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-06-06 12:35:48 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-06-06 12:35:48 +0000 |
commit | dd6605eb299705e09160de7e1f9f505c40e5d1b2 (patch) | |
tree | 346894a4a68277b1a52de23c6596e5f3873f3610 /lib/asan/lit_tests/lit.site.cfg.in | |
parent | 64e2282e9c984c598c93a8bd01983f842e247ce3 (diff) | |
download | compiler-rt-dd6605eb299705e09160de7e1f9f505c40e5d1b2.tar.gz compiler-rt-dd6605eb299705e09160de7e1f9f505c40e5d1b2.tar.bz2 compiler-rt-dd6605eb299705e09160de7e1f9f505c40e5d1b2.tar.xz |
[ASan] lit tests: create common autogenerated config for running compiler-rt lit tests, and use it in ASan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/lit_tests/lit.site.cfg.in')
-rw-r--r-- | lib/asan/lit_tests/lit.site.cfg.in | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/lib/asan/lit_tests/lit.site.cfg.in b/lib/asan/lit_tests/lit.site.cfg.in index 52841224..db520029 100644 --- a/lib/asan/lit_tests/lit.site.cfg.in +++ b/lib/asan/lit_tests/lit.site.cfg.in @@ -1,23 +1,11 @@ ## Autogenerated by LLVM/Clang configuration. # Do not edit! -config.target_triple = "@TARGET_TRIPLE@" -config.host_os = "@HOST_OS@" -config.llvm_src_root = "@LLVM_SOURCE_DIR@" -config.llvm_obj_root = "@LLVM_BINARY_DIR@" -config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@" -config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" -config.clang = "@LLVM_BINARY_DIR@/bin/clang" -config.compiler_rt_arch = "@COMPILER_RT_SUPPORTED_ARCH@" -config.asan_source_dir = "@ASAN_SOURCE_DIR@" +# Load common config for all compiler-rt lit tests. +lit.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured") -# LLVM tools dir can be passed in lit parameters, so try to -# apply substitution. -try: - config.llvm_tools_dir = config.llvm_tools_dir % lit.params -except KeyError,e: - key, = e.args - lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key)) +# Tool-specific config options. +config.asan_source_dir = "@ASAN_SOURCE_DIR@" -# Let the main config do the real work. +# Load tool-specific config that would do the real work. lit.load_config(config, "@ASAN_SOURCE_DIR@/lit_tests/lit.cfg") |