Commit 44c06fcc authored by Yureka's avatar Yureka
Browse files

buildMozillaMach: elf-hack is only available on elf platforms

Followup to https://github.com/NixOS/nixpkgs/pull/365185
Probably darwin does not have the elf-hack options, so restrict it to
platforms which have Elf.

Change-Id: I2d585721ca08df57a7d2d55bb5a727d34b3fb216
parent 847c4e10
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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