diff --git a/test/lit.cfg b/test/lit.cfg index 7c07fd54..1becd769 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -60,7 +60,7 @@ if cling_obj_root is not None: # For MacOS with libc++, out clang will not find libc++ causing errors with # STL. Use the XCode one instead by not adding ours to the path. Cling is # still found through deferCling(). - if platform.mac_ver() is None or \ + if platform.mac_ver()[0] is '' or \ float('.'.join(platform.mac_ver()[0].split('.')[:2])) < 10.9: config.environment['PATH'] = path