[lit] Fully qualify lit_config to avoid runtime crashes.
authorDavide Italiano <davide@freebsd.org>
Mon, 26 Nov 2018 17:39:20 +0000 (17:39 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 26 Nov 2018 17:39:20 +0000 (17:39 +0000)
llvm-svn: 347579

lldb/lit/helper/toolchain.py

index c0ea7ed..a5a7992 100644 (file)
@@ -76,7 +76,7 @@ def use_support_substitutions(config):
             res = -1
         if res == 0 and out:
             sdk_path = lit.util.to_string(out)
-            lit_config.note('using SDKROOT: %r' % sdk_path)
+            llvm_config.lit_config.note('using SDKROOT: %r' % sdk_path)
             flags = ['-isysroot', sdk_path]
     elif platform.system() in ['OpenBSD', 'Linux']:
         flags = ['-pthread']