mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-23 17:48:03 +00:00
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:
parent
76b26550e9
commit
18b78bfe9e
@ -183,7 +183,7 @@ if run_console_tests != 0:
|
|||||||
lit.util.usePlatformSdkOnDarwin(config, lit_config)
|
lit.util.usePlatformSdkOnDarwin(config, lit_config)
|
||||||
macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config)
|
macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config)
|
||||||
if macOSSDKVersion is not None:
|
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'):
|
if os.path.exists('/etc/gentoo-release'):
|
||||||
config.available_features.add('gentoo')
|
config.available_features.add('gentoo')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user