r365969 - NFC: utils/perf-training: Python 3 compatibility for lit.cfg

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 12 15:29:44 PDT 2019


Author: arphaman
Date: Fri Jul 12 15:29:44 2019
New Revision: 365969

URL: http://llvm.org/viewvc/llvm-project?rev=365969&view=rev
Log:
NFC: utils/perf-training: Python 3 compatibility for lit.cfg

The output of subprocess.check_output is now bytes. We need to decode it.

Modified:
    cfe/trunk/utils/perf-training/lit.cfg

Modified: cfe/trunk/utils/perf-training/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/perf-training/lit.cfg?rev=365969&r1=365968&r2=365969&view=diff
==============================================================================
--- cfe/trunk/utils/perf-training/lit.cfg (original)
+++ cfe/trunk/utils/perf-training/lit.cfg Fri Jul 12 15:29:44 2019
@@ -10,7 +10,7 @@ def getSysrootFlagsOnDarwin(config, lit_
     # 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




More information about the cfe-commits mailing list