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

This reverts commit 9178b10163 (r365969).

We are back to using Python2 and this is failing. This should instead be made
to be compatible with both Python 2 and 3.

llvm-svn: 366953
This commit is contained in:
Azharuddin Mohammed 2019-07-24 22:42:50 +00:00
parent 72391ab4f1
commit 5f4426e517

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().decode()
out = subprocess.check_output(['xcrun', '--show-sdk-path']).strip()
res = 0
except OSError:
res = -1