mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 13:51:09 +00:00
NFC: lit: python3 compatibility for functions
usePlatformSdkOnDarwin/findPlatformSdkVersionOnMacOS These functions should decode subprocess output llvm-svn: 365852
This commit is contained in:
parent
b475507fec
commit
965c4a8d02
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user