Unverified Commit 81b945e3 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

firefox, thunderbird: enable LTO on Darwin (#457369)

parents 61412055 80a81a80
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -130,7 +130,9 @@ in
  jemallocSupport ? !stdenv.hostPlatform.isMusl,
  jemalloc,
  ltoSupport ? (
    stdenv.hostPlatform.isLinux && stdenv.hostPlatform.is64bit && !stdenv.hostPlatform.isRiscV
    (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin)
    && stdenv.hostPlatform.is64bit
    && !stdenv.hostPlatform.isRiscV
  ),
  overrideCC,
  buildPackages,
@@ -163,7 +165,7 @@ in
  geolocationSupport ? !privacySupport,
  webrtcSupport ? !privacySupport,

  # digital rights managemewnt
  # digital rights management

  # This flag controls whether Firefox will show the nagbar, that allows
  # users at runtime the choice to enable Widevine CDM support when a site
@@ -466,7 +468,7 @@ buildStdenv.mkDerivation {
    "--host=${buildStdenv.buildPlatform.config}"
    "--target=${buildStdenv.hostPlatform.config}"
  ]
  # LTO is done using clang and lld on Linux.
  # LTO is done using clang and lld.
  ++ lib.optionals ltoSupport [
    "--enable-lto=cross,full" # Cross-Language LTO
    "--enable-linker=lld"