Skip to content

Commit

Permalink
pythonPackages.cffi: use new toolchain attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Feb 19, 2025
1 parent e402438 commit 46687f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/python-modules/cffi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ else
# The tests use -Werror but with python3.6 clang detects some unreachable code.
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing";

doCheck = !(stdenv.hostPlatform.isMusl || stdenv.hostPlatform.useLLVM or false);
doCheck =
!(
stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.cc == "clang" && !stdenv.hostPlatform.isDarwin)
);

nativeCheckInputs = [ pytestCheckHook ];

Expand Down

0 comments on commit 46687f6

Please sign in to comment.