Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 14bb5cb1db0390dfce73ba1c36dd5a85762baa14 authored by Larry Hastings on 04 March 2019, 02:06:04 UTC
Version bump & copyright year update for 3.4.10rc1.
Tip revision: 14bb5cb
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