NFC: lit: python3 compatibility for functions

usePlatformSdkOnDarwin/findPlatformSdkVersionOnMacOS

These functions should decode subprocess output

llvm-svn: 365852
This commit is contained in:
Alex Lorenz 2019-07-12 00:48:53 +00:00
parent b475507fec
commit 965c4a8d02

View File

@ -404,7 +404,7 @@ def usePlatformSdkOnDarwin(config, lit_config):
except OSError:
res = -1
if res == 0 and out:
sdk_path = out
sdk_path = out.decode()
lit_config.note('using SDKROOT: %r' % sdk_path)
config.environment['SDKROOT'] = sdk_path
@ -420,7 +420,7 @@ def findPlatformSdkVersionOnMacOS(config, lit_config):
except OSError:
res = -1
if res == 0 and out:
return out
return out.decode()
return None