Fix a Python3 compatibility error

File "clang/test/lit.cfg.py", line 186, in <module>
    config.available_features.add('macos-sdk-' + macOSSDKVersion)
TypeError: must be str, not bytes

llvm-svn: 365832
This commit is contained in:
Azharuddin Mohammed 2019-07-11 21:45:48 +00:00
parent 76b26550e9
commit 18b78bfe9e

View 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')