Staging
v0.5.1
https://github.com/python/cpython
Revision 6a39888c2c4bcfbcdc61a1953911ad30c62da1ef authored by Miss Islington (bot) on 16 September 2020, 12:25:09 UTC, committed by GitHub on 16 September 2020, 12:25:09 UTC

I just realized that my recent PR with sendfile on Solaris ([PR 22040](https://github.com/python/cpython/pull/22040)) has broken error handling.

Sorry for that, this simple followup fixes that.

Automerge-Triggered-By: @1st1
(cherry picked from commit fa8c9e70104b0aef966a518eb3a80a4881906ae0)

Co-authored-by: Jakub KulĂ­k <Kulikjak@gmail.com>
1 parent 7e356f1
Raw File
Tip revision: 6a39888c2c4bcfbcdc61a1953911ad30c62da1ef authored by Miss Islington (bot) on 16 September 2020, 12:25:09 UTC
bpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128)
Tip revision: 6a39888
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