summaryrefslogtreecommitdiff
path: root/test/lit.cfg.py
diff options
context:
space:
mode:
authorAzharuddin Mohammed <azhar@apple.com>2019-07-11 21:45:48 +0000
committerAzharuddin Mohammed <azhar@apple.com>2019-07-11 21:45:48 +0000
commit106409c59db91cda934883b757d9ab167ecd69ed (patch)
tree7ece15fb4a0f3579786079ecbbebdf4c4d880e73 /test/lit.cfg.py
parent90d6722bdcbc2af52306f7e948c556ad6185ac48 (diff)
downloadclang-106409c59db91cda934883b757d9ab167ecd69ed.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg.py')
-rw-r--r--test/lit.cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit.cfg.py b/test/lit.cfg.py
index 4fd8eb32f8..ca8a05dbe8 100644
--- a/test/lit.cfg.py
+++ b/test/lit.cfg.py
@@ -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')