Fix non-MacOS platform.mac_ver().

This commit is contained in:
Axel Naumann 2014-01-28 15:37:16 +01:00 committed by sftnight
parent 8ca703c272
commit 6e4f29775c

View File

@ -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