Staging
v0.5.1
https://github.com/python/cpython
Revision ca6d7aee91930363e7a1fcc1535d1be1b8debdea authored by Miss Islington (bot) on 22 May 2018, 17:43:55 UTC, committed by GitHub on 22 May 2018, 17:43:55 UTC
(cherry picked from commit 2a6d5da1d35b4a5342f6347d75298e2bec8194ed)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 25fd6cc
Raw File
Tip revision: ca6d7aee91930363e7a1fcc1535d1be1b8debdea authored by Miss Islington (bot) on 22 May 2018, 17:43:55 UTC
Improve comments in test_idle.py. (GH-7057)
Tip revision: ca6d7ae
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;
}
back to top