Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 1917d9b7c266d8be9ef1b403e38411ba871a0a37 authored by Larry Hastings on 17 March 2019, 23:47:59 UTC
Version bump for 3.5.7 final.
Tip revision: 1917d9b
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