Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cabal-paths patch for ghc 9.2.x #216857

Merged

Commits on Mar 10, 2023

  1. Configuration menu
    Copy the full SHA
    9851ef7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4b6d90 View commit details
    Browse the repository at this point in the history
  3. haskell.compiler.ghc9*: work around output cycles on aarch64-darwin

    Due to link time dead code elimination not working on aarch64-darwin,
    some unused store path references in Paths_* modules are retained. This
    causes reference cycles when a separate `bin` output is used.
    
    To prevent this, add a patch to Cabal as shipped by GHC which infers
    based on the installation layout (which is influenced by
    enableSeparateBinOutput, enableSeparateDataOutput etc. in a Nix build)
    which references can be retained without causing a reference cycle. This
    ensures that packages that were fine with a bin output will also work on
    aarch64-darwin. Packages that cause a reference cycle anyways (by
    actually using references that do cause one) fail due to a missing
    symbol – here we are trading the overall benefit for a more confusing
    error message.
    
    For details, refer to the explanation comment in the patch.
    sternenseemann committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    34e7e34 View commit details
    Browse the repository at this point in the history