mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Use clang by default on macOS
This commit is contained in:
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user