[lit] Use full config path in diagnostics.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 21 Jul 2016 23:20:41 +0000 (23:20 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 21 Jul 2016 23:20:41 +0000 (23:20 +0000)
 - 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

index 2402221..f5d41b1 100644 (file)
@@ -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))