diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-07-12 22:29:44 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-07-12 22:29:44 +0000 |
commit | 9178b10163f758cbf8a5290ea6a827990427ddc0 (patch) | |
tree | 6900057f8cfaee9a8380883a620dcb5c320931ac /clang/utils | |
parent | 000ba715ddbd2a7af17534105f8a0916d4168c3e (diff) | |
download | llvm-9178b10163f758cbf8a5290ea6a827990427ddc0.zip llvm-9178b10163f758cbf8a5290ea6a827990427ddc0.tar.gz llvm-9178b10163f758cbf8a5290ea6a827990427ddc0.tar.bz2 |
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
Diffstat (limited to 'clang/utils')
-rw-r--r-- | clang/utils/perf-training/lit.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
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 |