Staging
v0.5.1
https://github.com/python/cpython
Revision 8750bce9884335d43ac06989f64473ed877c5b63 authored by Miss Islington (bot) on 28 September 2019, 02:20:31 UTC, committed by Jesús Cea on 28 September 2019, 02:20:31 UTC
(cherry picked from commit 52d1b86bde2b772a76919c76991c326384954bf1)

Co-authored-by: Jesús Cea <jcea@jcea.es>
1 parent 52bdd41
Raw File
Tip revision: 8750bce9884335d43ac06989f64473ed877c5b63 authored by Miss Islington (bot) on 28 September 2019, 02:20:31 UTC
bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446) (#16449)
Tip revision: 8750bce
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