Skip to content

Commit

Permalink
buildMozillaMach: elf-hack is only available on elf platforms (NixOS#…
Browse files Browse the repository at this point in the history
…365233)

Followup to NixOS#365185
Probably darwin does not have the elf-hack options, so restrict it to
platforms which have Elf.

Change-Id: I2d585721ca08df57a7d2d55bb5a727d34b3fb216
  • Loading branch information
mweinelt authored Dec 14, 2024
2 parents a0a35b6 + 44c06fc commit e1cddb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/applications/networking/browsers/firefox/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ let

# Specifying --(dis|en)able-elf-hack on a platform for which it's not implemented will give `--disable-elf-hack is not available in this configuration`
# This is declared here because it's used in the default value of elfhackSupport
isElfhackPlatform = stdenv: stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64;
isElfhackPlatform = stdenv: stdenv.hostPlatform.isElf &&
(stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64);
in

{ lib
Expand Down

0 comments on commit e1cddb1

Please sign in to comment.