diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-06-06 12:48:20 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-06-06 12:48:20 +0000 |
commit | d668cd2ff37af5db33d21de9e809018ae74a99b7 (patch) | |
tree | f65b6a5afba8c2591fbea2f5066941f1092aae47 /lib/lit.common.unit.configured.in | |
parent | dd6605eb299705e09160de7e1f9f505c40e5d1b2 (diff) | |
download | compiler-rt-d668cd2ff37af5db33d21de9e809018ae74a99b7.tar.gz compiler-rt-d668cd2ff37af5db33d21de9e809018ae74a99b7.tar.bz2 compiler-rt-d668cd2ff37af5db33d21de9e809018ae74a99b7.tar.xz |
[ASan] create common autogenerated config for running compiler-rt unit tests, and use it in ASan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lit.common.unit.configured.in')
-rw-r--r-- | lib/lit.common.unit.configured.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/lit.common.unit.configured.in b/lib/lit.common.unit.configured.in new file mode 100644 index 00000000..c726bba2 --- /dev/null +++ b/lib/lit.common.unit.configured.in @@ -0,0 +1,17 @@ +## Autogenerated by LLVM/Clang configuration. +# Do not edit! + +# Generic config options for all compiler-rt unit tests. +config.target_triple = "@TARGET_TRIPLE@" +config.llvm_src_root = "@LLVM_SOURCE_DIR@" +config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@" +config.llvm_build_mode = "@LLVM_BUILD_MODE@" + +try: + config.llvm_build_mode = config.llvm_build_mode % lit.params +except KeyError,e: + key, = e.args + lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key)) + +# Setup attributes common for all compiler-rt unit tests. +lit.load_config(config, "@COMPILER_RT_SOURCE_DIR@/lib/lit.common.unit.cfg") |