[Backport release-26.05] librewolf: only do LTO on linux (#528887)

This commit is contained in:
nixpkgs-ci[bot] 2026-06-06 19:19:59 +00:00 committed by GitHub
commit 8c8961d8d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,9 @@
{ callPackage, runCommand }:
{
callPackage,
runCommand,
lib,
stdenv,
}:
let
src = callPackage ./src.nix { };
in
@ -14,6 +19,8 @@ rec {
# Flags based on discussion in https://github.com/NixOS/nixpkgs/issues/482250
"--disable-debug"
"--disable-debug-symbols"
]
++ lib.optionals stdenv.hostPlatform.isLinux [
"--enable-lto=thin,cross"
];