New submission from Benjamin Peterson <benja...@python.org>:

When built with clang, Python reports that it was built with something like 
"GCC 4.2.1 Compatible Clang 4.0.0 (tags/RELEASE_400/rc1)". This is because 
clang pretends to be GCC 4.2.1 for the purposes of the __VERSION__ preprocessor 
macro. We should use __clang_version__ when clang is being used.

(Possibly we should simply use the first line of "$CC --version" as the 
compiler version of record rather than writing preprocessor tests in 
getcompiler.c.)

----------
components: Build
keywords: easy (C)
messages: 303731
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: don't mention GCC in sys.version when built with Clang
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31696>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to