diff options
Diffstat (limited to 'test/lit.site.cfg.in')
-rw-r--r-- | test/lit.site.cfg.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 1ae99eb024..3e7dc5c6a3 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -1,3 +1,5 @@ +import sys + ## Autogenerated by LLVM/Clang configuration. # Do not edit! config.host_triple = "@LLVM_HOST_TRIPLE@" @@ -25,7 +27,8 @@ config.have_zlib = "@HAVE_LIBZ@" # used when we can't determine the tool dir at configuration time. try: config.llvm_tools_dir = config.llvm_tools_dir % lit.params -except KeyError,e: +except KeyError: + e = sys.exc_info()[1] key, = e.args lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) |