Staging
v0.5.1
https://github.com/python/cpython
Revision b73dd02ea744288831f71363a7467552c09875ea authored by Victor Stinner on 22 January 2020, 20:11:17 UTC, committed by GitHub on 22 January 2020, 20:11:17 UTC
This reverts commit 56cd3710a1ea3ba872d345ea1bebc86ed08bc8b8.
1 parent beea26b
Raw File
Tip revision: b73dd02ea744288831f71363a7467552c09875ea authored by Victor Stinner on 22 January 2020, 20:11:17 UTC
Revert "bpo-39413: Implement os.unsetenv() on Windows (GH-18104)" (GH-18124)
Tip revision: b73dd02
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