Commit graph

6 commits

Author SHA1 Message Date
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Robert Schütz eb35d2924f py3c: only run tests on python3 2022-11-25 10:27:30 -08:00
R. Ryantm fef0cde6c7 py3c: 1.3.1 -> 1.4 2021-11-03 22:33:04 +00:00
Sergei Trofimovich c1ff7da0a9 py3c: unconditionally drop -Werror (fix gcc-11 build)
On gcc-11 build fails as:

    $ nix-build -E 'with import ./. {}; py3c.override { stdenv = gcc11Stdenv; }'

    gcc -fno-strict-aliasing ... -Werror -Wall
    cc1plus: warning:
      command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    In file included from /nix/store/...-python-2.7.18/include/python2.7/Python.h:88,
                     from test_py3c.cpp:4:
    /nix/store/...-python-2.7.18/include/python2.7/unicodeobject.h:534:24:
      error: ISO C++17 does not allow 'register' storage class specifier [-Werror=register]
      534 |     register PyObject *obj,     /* Object */
          |                        ^~~

The fix was already present o clang toolchain. Let's extendt it to all toolchains.
2021-09-28 13:13:35 +01:00
Robert Schütz 280c8cf540
py3c: fix build with darwin (#121447) 2021-05-03 02:04:29 +02:00
ajs124 e097d99f0d py3c: init at 1.3.1 2021-04-29 18:41:14 +02:00