gh-106212: Raise when using c-analyzer with clang on darwin (#110757)

This commit is contained in:
Lysandros Nikolaou 2023-10-13 10:52:30 +02:00 committed by GitHub
parent b7f9661bc1
commit 898f531996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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'