librewolf: only do LTO on linux

(cherry picked from commit 50e92c439d)
This commit is contained in:
Alexandros Feuerstein
2026-06-06 00:00:50 +02:00
committed by github-actions[bot]
parent c4b5651934
commit dbb8a1a68e

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"
];