[Python 3] Decode check_ouput result as UTF-8

llvm-svn: 364325
This commit is contained in:
Jonas Devlieghere 2019-06-25 15:58:32 +00:00
parent 96a192ea53
commit 635eb80662
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ lit.util.usePlatformSdkOnDarwin(config, lit_config)
if platform.system() == 'Darwin':
import subprocess
xcode_lldb_vers = subprocess.check_output(['xcrun', 'lldb', '--version'])
xcode_lldb_vers = subprocess.check_output(['xcrun', 'lldb', '--version']).decode("utf-8")
match = re.search('lldb-(\d+)', xcode_lldb_vers)
if match:
apple_lldb_vers = int(match.group(1))