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

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

llvm-svn: 365969
This commit is contained in:
Alex Lorenz 2019-07-12 22:29:44 +00:00
parent 000ba715dd
commit 9178b10163
1 changed files with 1 additions and 1 deletions

View 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