From 9178b10163f758cbf8a5290ea6a827990427ddc0 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Fri, 12 Jul 2019 22:29:44 +0000 Subject: 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 --- clang/utils/perf-training/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/utils/perf-training') diff --git a/clang/utils/perf-training/lit.cfg b/clang/utils/perf-training/lit.cfg index 671d44f..be822d6 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 -- cgit v1.1