]> granicus.if.org Git - clang/commitdiff
NFC: utils/perf-training: Python 3 compatibility for lit.cfg
authorAlex Lorenz <arphaman@gmail.com>
Fri, 12 Jul 2019 22:29:44 +0000 (22:29 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 12 Jul 2019 22:29:44 +0000 (22:29 +0000)
The output of subprocess.check_output is now bytes. We need to decode it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365969 91177308-0d34-0410-b5e6-96231b3b80d8

utils/perf-training/lit.cfg

index 671d44f83b9485e21d35fb87e894f6b211d2fb60..be822d66e38ce42cdd57465fb704e2aadc26554f 100644 (file)
@@ -10,7 +10,7 @@ def getSysrootFlagsOnDarwin(config, lit_config):
     # default system root path.
     if 'darwin' in config.target_triple:
         try:
-            out = subprocess.check_output(['xcrun', '--show-sdk-path']).strip()
+            out = subprocess.check_output(['xcrun', '--show-sdk-path']).strip().decode()
             res = 0
         except OSError:
             res = -1