Use clang by default on macOS
This commit is contained in:
parent
216a66ec4c
commit
c2f008672c
2
setup.py
2
setup.py
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user