Fix lit.cfg for python3: can only concatenate str (not "bytes") to str
authorStefan Granitz <stefan.graenitz@gmail.com>
Mon, 20 Aug 2018 12:37:54 +0000 (12:37 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Mon, 20 Aug 2018 12:37:54 +0000 (12:37 +0000)
llvm-svn: 340168

lldb/lit/lit.cfg

index 2489353289f1c482f142966610bbf4ba62a4021e..b25231d7f666dafdc5e0de91e71e561a81e9c9e0 100644 (file)
@@ -78,7 +78,7 @@ if platform.system() in ['Darwin']:
     except OSError:
         res = -1
     if res == 0 and out:
-        sdk_path = out
+        sdk_path = lit.util.to_string(out)
         lit_config.note('using SDKROOT: %r' % sdk_path)
         config.cc += " -isysroot %s" % sdk_path
         config.cxx += " -isysroot %s" % sdk_path