mirror of https://github.com/python/cpython
gh-106212: Raise when using c-analyzer with clang on darwin (#110757)
This commit is contained in:
parent
b7f9661bc1
commit
898f531996
|
@ -2,6 +2,7 @@ import contextlib
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -242,6 +243,8 @@ def _get_default_compiler():
|
||||||
return 'unix'
|
return 'unix'
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
return 'msvc'
|
return 'msvc'
|
||||||
|
if sys.platform == 'darwin' and 'clang' in platform.python_compiler():
|
||||||
|
return 'clang'
|
||||||
return 'unix'
|
return 'unix'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue