From: Azharuddin Mohammed Date: Wed, 24 Jul 2019 22:42:50 +0000 (+0000) Subject: Revert "NFC: utils/perf-training: Python 3 compatibility for lit.cfg" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b452de0d9b4bd0c09d7747b2eaea85a8250dacda;p=clang Revert "NFC: utils/perf-training: Python 3 compatibility for lit.cfg" This reverts commit 9178b10163f758cbf8a5290ea6a827990427ddc0 (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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366953 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/perf-training/lit.cfg b/utils/perf-training/lit.cfg index be822d66e3..671d44f83b 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().decode() + out = subprocess.check_output(['xcrun', '--show-sdk-path']).strip() res = 0 except OSError: res = -1