From 61318736ee089055a6a029da2eaf6dfcb54cf7a4 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sat, 3 Mar 2012 13:30:56 +0000 Subject: [PATCH] Honour --config-prefix also for lit.local.cfg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151977 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/lit/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/lit/lit/main.py b/utils/lit/lit/main.py index ea2736c7443..039868da786 100755 --- a/utils/lit/lit/main.py +++ b/utils/lit/lit/main.py @@ -456,9 +456,10 @@ def main(builtinParameters = {}): # Bump the GIL check interval, its more imp parser.error('No inputs specified') if opts.configPrefix is not None: - global gConfigName, gSiteConfigName + global gConfigName, gSiteConfigName, kLocalConfigName gConfigName = '%s.cfg' % opts.configPrefix gSiteConfigName = '%s.site.cfg' % opts.configPrefix + kLocalConfigName = '%s.local.cfg' % opts.configPrefix if opts.numThreads is None: # Python <2.5 has a race condition causing lit to always fail with numThreads>1