Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 75c1ca7b6c546ef674eb40bfe47f41e6045dc99b authored by Larry Hastings on 05 September 2020, 09:04:10 UTC
Post-release update for 3.5.10.
Tip revision: 75c1ca7
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