Commit 7faf7e50 authored by Benjamin Peterson's avatar Benjamin Peterson Committed by GitHub

closes bpo-31696: don't mention GCC in sys.version when building with clang (#3891)

parent ac317700
Improve compiler version information in :data:`sys.version` when Python is
built with Clang.
......@@ -5,15 +5,14 @@
#ifndef COMPILER
#ifdef __GNUC__
// Note the __clang__ conditional has to come before the __GNUC__ one because
// clang pretends to be GCC.
#if defined(__clang__)
#define COMPILER "\n[Clang " __clang_version__ "]"
#elif defined(__GNUC__)
#define COMPILER "\n[GCC " __VERSION__ "]"
#endif
#endif /* !COMPILER */
#ifndef COMPILER
#ifdef __cplusplus
// Generic fallbacks.
#elif defined(__cplusplus)
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment