python3Pacakges.awscrt: only pull in GCC on aarch64-linux

This commit is contained in:
Andreas Rammhold 2021-06-03 01:09:01 +02:00
parent 47cc55df37
commit e8bc1b2f97

View file

@ -11,7 +11,9 @@ buildPythonPackage rec {
# https://github.com/NixOS/nixpkgs/issues/39687
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isAarch64 ([ gcc10 perl ]);
nativeBuildInputs = [ cmake ] ++
# gcc <10 is not supported, LLVM on darwin is just fine
lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [ gcc10 perl ];
dontUseCmakeConfigure = true;