Use clang by default on macOS

This commit is contained in:
Kovid Goyal 2017-11-08 17:30:55 +05:30
parent 216a66ec4c
commit c2f008672c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -65,7 +65,7 @@ def at_least_version(package, major, minor=0):
def cc_version(): def cc_version():
cc = os.environ.get('CC', 'gcc') cc = os.environ.get('CC', 'clang' if isosx else 'gcc')
raw = subprocess.check_output([cc, '-dumpversion']).decode('utf-8') raw = subprocess.check_output([cc, '-dumpversion']).decode('utf-8')
ver = raw.split('.')[:2] ver = raw.split('.')[:2]
try: try: