[clang] b0eb7cd - Reapply "NFC: utils/perf-training: Python 3 compatibility for lit.cfg"
Azharuddin Mohammed via cfe-commits
cfe-commits at lists.llvm.org
Tue May 5 15:56:52 PDT 2020
Author: Azharuddin Mohammed
Date: 2020-05-05T15:56:23-07:00
New Revision: b0eb7cd2be849f0551e9b05a0cbf2d59d8c9f50d
URL: https://github.com/llvm/llvm-project/commit/b0eb7cd2be849f0551e9b05a0cbf2d59d8c9f50d
DIFF: https://github.com/llvm/llvm-project/commit/b0eb7cd2be849f0551e9b05a0cbf2d59d8c9f50d.diff
LOG: Reapply "NFC: utils/perf-training: Python 3 compatibility for lit.cfg"
This is in response to the recent move to Python 3.
This reverts commit 5f4426e517fc26d10db2fd09f3e254e80446d62d.
Added:
Modified:
clang/utils/perf-training/lit.cfg
Removed:
################################################################################
diff --git a/clang/utils/perf-training/lit.cfg b/clang/utils/perf-training/lit.cfg
index e5b7162e5904..acb50ad30d7a 100644
--- a/clang/utils/perf-training/lit.cfg
+++ b/clang/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
More information about the cfe-commits
mailing list