diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-29 00:20:09 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-11-29 00:20:09 +0000 |
commit | b3ccc12831cedb8785611192f47377a947df8dce (patch) | |
tree | 117dfd75a48f9f639398a92c50c2f46121ed6e3b /test/lit.cfg | |
parent | 849f2e381e4e83dc4f60e4a1fe6e6bb47bde8248 (diff) | |
download | llvm-b3ccc12831cedb8785611192f47377a947df8dce.tar.gz llvm-b3ccc12831cedb8785611192f47377a947df8dce.tar.bz2 llvm-b3ccc12831cedb8785611192f47377a947df8dce.tar.xz |
test: Add the new feature 'loadable_module'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index b529169df0..aa1e1a979a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -3,6 +3,7 @@ # Configuration file for the 'lit' test runner. import os +import sys # name: The name of this test suite. config.name = 'LLVM' @@ -214,3 +215,15 @@ def on_clone(parent, cfg, for_path): lit.error('unable to understand %r:\n%s' % (libPath, lib)) config.on_clone = on_clone + +### Features + +# Loadable module +# FIXME: This should be supplied by Makefile or autoconf. +if sys.platform in ['win32', 'cygwin']: + loadable_module = (config.enable_shared == 1) +else: + loadable_module = True + +if loadable_module: + config.available_features.add('loadable_module') |