Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: 08e544e27bcc26fd82d218ea0676da42c8b8b9f7 authored by Antoine Pitrou on 25 August 2011, 16:32:02 UTC
Issue #12333: fix test_distutils failures under Solaris and derivatives
Tip revision: 08e544e
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