Staging
v0.5.1
https://github.com/python/cpython
Revision 7475aa2c590e33a47f5e79e4079bca0645e93f2f authored by Miss Islington (bot) on 27 August 2020, 00:47:10 UTC, committed by GitHub on 27 August 2020, 00:47:10 UTC
(cherry picked from commit 94ad6c674f7687ef22853cb8d42b440d6b42ddc8)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
1 parent 57b6988
Raw File
Tip revision: 7475aa2c590e33a47f5e79e4079bca0645e93f2f authored by Miss Islington (bot) on 27 August 2020, 00:47:10 UTC
bpo-33660: Fix PosixPath to resolve a relative path on root (GH-21975)
Tip revision: 7475aa2
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