From: Alex Lorenz Date: Fri, 12 Jul 2019 22:29:44 +0000 (+0000) Subject: NFC: utils/perf-training: Python 3 compatibility for lit.cfg X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f3725f46291413a8420d703df48fa9fcef7a5fb;p=clang NFC: utils/perf-training: Python 3 compatibility for lit.cfg 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 --- diff --git a/utils/perf-training/lit.cfg b/utils/perf-training/lit.cfg index 671d44f83b..be822d66e3 100644 --- a/utils/perf-training/lit.cfg +++ b/utils/perf-training/lit.cfg @@ -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