firefox: disable PGO on 32-bit

This commit is contained in:
Ben Siraphob
2026-07-16 13:52:45 -07:00
parent 7c7349ee6e
commit b1ce11974e
@@ -145,7 +145,13 @@ in
),
overrideCC,
buildPackages,
pgoSupport ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform == stdenv.buildPlatform),
# PGO merges profile data with a 32-bit llvm-profdata, which runs out of
# address space on the huge libxul profile, so disable it on 32-bit.
pgoSupport ? (
stdenv.hostPlatform.isLinux
&& stdenv.hostPlatform == stdenv.buildPlatform
&& stdenv.hostPlatform.is64bit
),
xvfb-run,
elfhackSupport ?
isElfhackPlatform stdenv && !(stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isAarch64),