diff options
Diffstat (limited to 'clang/test/lit.cfg')
-rw-r--r-- | clang/test/lit.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 60d8df05773..9b274fed30b 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -55,6 +55,12 @@ if config.test_exec_root is None: # configuration hasn't been created by the build system, or we are in an # out-of-tree build situation). + # Check for 'clang_site_config' user parameter, and use that if available. + site_cfg = lit.params.get('clang_site_config', None) + if site_cfg and os.path.exists(site_cfg): + lit.load_config(config, site_cfg) + raise SystemExit + # Try to detect the situation where we are using an out-of-tree build by # looking for 'llvm-config'. # |