Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: ac4f751049dbb6092bb2697c67d83bf14a46b72e authored by Larry Hastings on 12 October 2019, 11:10:33 UTC
Version bump for 3.5.8rc2.
Tip revision: ac4f751
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