Staging
v0.5.1
https://github.com/python/cpython
Revision ea164309dea4e7f92aeda6daa9e9679290c68827 authored by Miss Islington (bot) on 29 June 2020, 05:36:04 UTC, committed by GitHub on 29 June 2020, 05:36:04 UTC
(cherry picked from commit 02134dae448c7885c9c07adfc6970f878db33372)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent cb53b8c
Raw File
Tip revision: ea164309dea4e7f92aeda6daa9e9679290c68827 authored by Miss Islington (bot) on 29 June 2020, 05:36:04 UTC
bpo-41123: Doc: PyLong_FromUnicode will be removed in 3.10 (GH-21205)
Tip revision: ea16430
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