]> granicus.if.org Git - clang/commitdiff
Fix a Python3 compatibility error
authorAzharuddin Mohammed <azhar@apple.com>
Thu, 11 Jul 2019 21:45:48 +0000 (21:45 +0000)
committerAzharuddin Mohammed <azhar@apple.com>
Thu, 11 Jul 2019 21:45:48 +0000 (21:45 +0000)
  File "clang/test/lit.cfg.py", line 186, in <module>
    config.available_features.add('macos-sdk-' + macOSSDKVersion)
TypeError: must be str, not bytes

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365832 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg.py

index 4fd8eb32f80b5d2e937ca97afc567c1541ab38e0..ca8a05dbe821bfba40bd71ea3049e73ec830f77d 100644 (file)
@@ -183,7 +183,7 @@ if run_console_tests != 0:
 lit.util.usePlatformSdkOnDarwin(config, lit_config)
 macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config)
 if macOSSDKVersion is not None:
-    config.available_features.add('macos-sdk-' + macOSSDKVersion)
+    config.available_features.add('macos-sdk-' + str(macOSSDKVersion))
 
 if os.path.exists('/etc/gentoo-release'):
     config.available_features.add('gentoo')