Skip to content

Commit

Permalink
Builder|macOS: Improved macOS version check
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 3, 2017
1 parent 5c8d7ec commit ab06341
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distrib/platform_release.py
Expand Up @@ -107,7 +107,11 @@ def mac_os_version():


def mac_os_8_or_later():
return mac_os_version() in ['10.8', '10.9', '10.10', '10.11', '10.12']
try:
v = mac_os_version().split('.')
return int(v[1]) >= 8
except:
return False


def mac_target_ext():
Expand Down

0 comments on commit ab06341

Please sign in to comment.