mirror of https://github.com/python/cpython
closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)
Automerge-Triggered-By: GH:benjaminp
This commit is contained in:
parent
c6ccdfb479
commit
28a30bc2e2
|
@ -0,0 +1 @@
|
||||||
|
Always put compiler and system information on the first line of the REPL welcome message.
|
|
@ -8,9 +8,9 @@
|
||||||
// Note the __clang__ conditional has to come before the __GNUC__ one because
|
// Note the __clang__ conditional has to come before the __GNUC__ one because
|
||||||
// clang pretends to be GCC.
|
// clang pretends to be GCC.
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define COMPILER "\n[Clang " __clang_version__ "]"
|
#define COMPILER "[Clang " __clang_version__ "]"
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define COMPILER "\n[GCC " __VERSION__ "]"
|
#define COMPILER "[GCC " __VERSION__ "]"
|
||||||
// Generic fallbacks.
|
// Generic fallbacks.
|
||||||
#elif defined(__cplusplus)
|
#elif defined(__cplusplus)
|
||||||
#define COMPILER "[C++]"
|
#define COMPILER "[C++]"
|
||||||
|
|
Loading…
Reference in New Issue