python310Packages.levenshtein: disable LTO to fix aarch64-darwin build

This commit is contained in:
Theodore Ni 2022-12-03 15:40:42 -08:00
parent 13d189d686
commit c4950e533e
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
@ -36,6 +37,10 @@ buildPythonPackage rec {
rapidfuzz-cpp
];
NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [
"-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098
];
propagatedBuildInputs = [
rapidfuzz
];