mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-11 13:57:42 +00:00
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.
19 lines
614 B
Nix
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 ];
|
|
})
|
|
];
|
|
}
|