Files
simplex-chat/scripts/nix/darwin-info-table-project.nix
T
Moritz Angermann ad69b2b1a6 fix(nix): keep Intel Darwin info tables with their entry code
Mark x86 Mach-O info entries as alternate entries in both GHC stages, so LLD preserves tables-next-to-code. Add a production compiler object/link regression to the existing Intel CI job.
2026-10-17 03:32:41 +09:00

19 lines
614 B
Nix

{ config, lib, pkgs, ... }:
let
inherit (pkgs.stdenv) buildPlatform hostPlatform targetPlatform;
in
lib.mkIf (
hostPlatform.isDarwin && hostPlatform.isx86_64
&& buildPlatform.config == hostPlatform.config
&& hostPlatform.config == targetPlatform.config
&& lib.elem config.name [ "ghc914-sh-stage1" "ghc914-sh-stage2" ]
) {
modules = [
({ lib, ... }: {
# Stage1 must emit correct info tables for the stage2 boot libraries;
# stage2 must retain that fix for application and interpreter objects.
packages.ghc.patches = lib.mkAfter [ ./ghc914-macho-info-tables.patch ];
})
];
}