8000 closes bpo-43278: remove unnecessary leading '\n' from COMPILER when … · python/cpython@28a30bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 28a30bc

Browse files
authored
closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)
Automerge-Triggered-By: GH:benjaminp
1 parent c6ccdfb commit 28a30bc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Always put compiler and system information on the first line of the REPL welcome message.

Python/getcompiler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// Note the __clang__ conditional has to come before the __GNUC__ one because
99
// clang pretends to be GCC.
1010
#if defined(__clang__)
11-
#define COMPILER "\n[Clang " __clang_version__ "]"
11+
#define COMPILER "[Clang " __clang_version__ "]"
1212
#elif defined(__GNUC__)
13-
#define COMPILER "\n[GCC " __VERSION__ "]"
13+
#define COMPILER "[GCC " __VERSION__ "]"
1414
// Generic fallbacks.
1515
#elif defined(__cplusplus)
1616
#define COMPILER "[C++]"

0 commit comments

Comments
 (0)
0