summaryrefslogtreecommitdiffstats
path: root/Python/getcompiler.c
diff options
context:
space:
mode:
authorJoseph Shen <joseph.smeng@gmail.com>2021-02-26 04:24:21 (GMT)
committerGitHub <noreply@github.com>2021-02-26 04:24:21 (GMT)
commit28a30bc2e2d5a02d42e65ff7b7c6968fa966279d (patch)
treecb32e41221fc2c22d9c3eedae1d8d6aca942be23 /Python/getcompiler.c
parentc6ccdfb479cb0a4a491575ef0bafaa0d29daae1a (diff)
downloadcpython-28a30bc2e2d5a02d42e65ff7b7c6968fa966279d.zip
cpython-28a30bc2e2d5a02d42e65ff7b7c6968fa966279d.tar.gz
cpython-28a30bc2e2d5a02d42e65ff7b7c6968fa966279d.tar.bz2
closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606)
Automerge-Triggered-By: GH:benjaminp
Diffstat (limited to 'Python/getcompiler.c')
-rw-r--r--Python/getcompiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getcompiler.c b/Python/getcompiler.c
index 59c0dbf..a5d2623 100644
--- a/Python/getcompiler.c
+++ b/Python/getcompiler.c
@@ -8,9 +8,9 @@
// 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__ "]"
+#define COMPILER "[Clang " __clang_version__ "]"
#elif defined(__GNUC__)
-#define COMPILER "\n[GCC " __VERSION__ "]"
+#define COMPILER "[GCC " __VERSION__ "]"
// Generic fallbacks.
#elif defined(__cplusplus)
#define COMPILER "[C++]"