Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: ac39a516017c80993309f803441c8ee97c44838e authored by Larry Hastings on 29 October 2019, 06:08:24 UTC
Version bump for 3.5.8 final.
Tip revision: ac39a51
getcompiler.c

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

#include "Python.h"

#ifndef COMPILER

#ifdef __GNUC__
#define COMPILER "\n[GCC " __VERSION__ "]"
#endif

#endif /* !COMPILER */

#ifndef COMPILER

#ifdef __cplusplus
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif

#endif /* !COMPILER */

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