Staging
v0.8.1
v0.8.1
Revision 4d11fe7cad9e138423e16338c88908f24a55f1cf authored by Miss Islington (bot) on 04 June 2018, 03:15:10 UTC, committed by Ned Deily on 04 June 2018, 03:15:10 UTC
(cherry picked from commit e36837cb71032ccfa713e75623b314f091dc22bb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 37343a2
getcompiler.c
/* Return the compiler identification, if possible. */
#include "Python.h"
#ifndef COMPILER
// Note the __clang__ conditional has to come before the __GNUC__ one because
// clang pretends to be GCC.
#if defined(__clang__)
#define COMPILER "\n[Clang " __clang_version__ "]"
#elif defined(__GNUC__)
#define COMPILER "\n[GCC " __VERSION__ "]"
// Generic fallbacks.
#elif defined(__cplusplus)
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif
#endif /* !COMPILER */
const char *
Py_GetCompiler(void)
{
return COMPILER;
}
Computing file changes ...