Staging
v0.5.1
https://github.com/python/cpython
Revision ba1c2c85b39fbcb31584c20f8a63fb87f9cb9c02 authored by Miss Islington (bot) on 30 May 2020, 07:54:58 UTC, committed by GitHub on 30 May 2020, 07:54:58 UTC
(cherry picked from commit 735d902b363b759df9ff00e58bbf4f7e2bde78cd)

Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de>
1 parent ef2f9ac
Raw File
Tip revision: ba1c2c85b39fbcb31584c20f8a63fb87f9cb9c02 authored by Miss Islington (bot) on 30 May 2020, 07:54:58 UTC
bpo-40798: Generate a different message for already removed elements (GH-20483)
Tip revision: ba1c2c8
getcompiler.c

/* Return the compiler identification, if possible. */

#include "Python.h"

#ifndef COMPILER

// 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__ "]"
// Generic fallbacks.
#elif defined(__cplusplus)
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif

#endif /* !COMPILER */

const char *
Py_GetCompiler(void)
{
    return COMPILER;
}
back to top