This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson
Date 2017-10-04.20:56:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507150585.16.0.213398074469.issue31696@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2017-10-04 20:56:25benjamin.petersonsetrecipients: + benjamin.peterson
2017-10-04 20:56:25benjamin.petersonsetmessageid: <1507150585.16.0.213398074469.issue31696@psf.upfronthosting.co.za>
2017-10-04 20:56:25benjamin.petersonlinkissue31696 messages
2017-10-04 20:56:25benjamin.petersoncreate