Staging
v0.5.1
https://github.com/python/cpython
Revision 06afac6c5740bb81d2b7ab9639d2b08cccf77d33 authored by pxinwr on 07 December 2020, 20:41:12 UTC, committed by GitHub on 07 December 2020, 20:41:12 UTC
1 parent b63a620
Raw File
Tip revision: 06afac6c5740bb81d2b7ab9639d2b08cccf77d33 authored by pxinwr on 07 December 2020, 20:41:12 UTC
bpo-41462: Add os.set_blocking() support for VxWorks RTOS (GH-21713)
Tip revision: 06afac6
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