Staging
v0.8.1
https://github.com/python/cpython
Revision 4544e78ec4558b75bf95e5b7dfc1b5bbb07ae5f0 authored by alclarks on 17 November 2019, 22:00:43 UTC, committed by Raymond Hettinger on 17 November 2019, 22:00:43 UTC
1 parent 2bc3434
Raw File
Tip revision: 4544e78ec4558b75bf95e5b7dfc1b5bbb07ae5f0 authored by alclarks on 17 November 2019, 22:00:43 UTC
bpo-25866: Minor cleanups to "sequence" in docs (GH-17177)
Tip revision: 4544e78
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