From 718734a3627602fb6c627c08751a87ad46e199af Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 21 Jul 2016 23:20:41 +0000 Subject: [PATCH] [lit] Use full config path in diagnostics. - This allows tools like emacs to automatically find the config file path when you step through errors. - Patch by Dave Abrahams. llvm-svn: 276357 --- llvm/utils/lit/lit/LitConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/lit/lit/LitConfig.py b/llvm/utils/lit/lit/LitConfig.py index 2402221..f5d41b1 100644 --- a/llvm/utils/lit/lit/LitConfig.py +++ b/llvm/utils/lit/lit/LitConfig.py @@ -132,7 +132,7 @@ class LitConfig(object): # Step out of _write_message, and then out of wrapper. f = f.f_back.f_back file,line,_,_,_ = inspect.getframeinfo(f) - location = '%s:%d' % (os.path.basename(file), line) + location = '%s:%d' % (file, line) sys.stderr.write('%s: %s: %s: %s\n' % (self.progname, location, kind, message)) -- 2.7.4