[llvm] r365852 - NFC: lit: python3 compatibility for functions
Alex Lorenz via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 17:48:54 PDT 2019
Author: arphaman
Date: Thu Jul 11 17:48:53 2019
New Revision: 365852
URL: http://llvm.org/viewvc/llvm-project?rev=365852&view=rev
Log:
NFC: lit: python3 compatibility for functions
usePlatformSdkOnDarwin/findPlatformSdkVersionOnMacOS
These functions should decode subprocess output
Modified:
llvm/trunk/utils/lit/lit/util.py
Modified: llvm/trunk/utils/lit/lit/util.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/util.py?rev=365852&r1=365851&r2=365852&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/util.py (original)
+++ llvm/trunk/utils/lit/lit/util.py Thu Jul 11 17:48:53 2019
@@ -404,7 +404,7 @@ def usePlatformSdkOnDarwin(config, lit_c
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
except OSError:
res = -1
if res == 0 and out:
- return out
+ return out.decode()
return None
More information about the llvm-commits
mailing list