Staging
v0.5.1
https://github.com/python/cpython
Revision fda6593f926be274225dc4bcfdc3f96d9f40258f authored by Miss Islington (bot) on 04 February 2020, 00:30:44 UTC, committed by GitHub on 04 February 2020, 00:30:44 UTC

Improvements in listsort.txt and a comment in sortperf.py.

Automerge-Triggered-By: @csabella
(cherry picked from commit 24e5ad4689de9adc8e4a7d8c08fe400dcea668e6)

Co-authored-by: Stefan Pochmann <stefan.pochmann@gmail.com>
1 parent 4c71c83
Raw File
Tip revision: fda6593f926be274225dc4bcfdc3f96d9f40258f authored by Miss Islington (bot) on 04 February 2020, 00:30:44 UTC
Fixes in sorting descriptions (GH-18317)
Tip revision: fda6593
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