Skip to content

Use cc_wrapper to shorten library and include paths and rpaths - #2791

Merged
mergify[bot] merged 4 commits into
masterfrom
use-cc-wrapper
Sep 9, 2019
Merged

Use cc_wrapper to shorten library and include paths and rpaths#2791
mergify[bot] merged 4 commits into
masterfrom
use-cc-wrapper

Conversation

@aherrmann-da

Copy link
Copy Markdown
Contributor

This turns out to be necessary when using stack_snapshot instead of Hazel. The reason is that GHC does not normalize or deduplicate library or include paths defined by package configurations in the package database. See tweag/rules_haskell#1062

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Add a line to the release notes, if appropriate
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

Updates to latest rules_haskell master and adds the cc_wrapper PR as a
patch, see tweag/rules_haskell#1039.
When using `haskell_cabal_library` GHC constructs unnecessarily long
include directories which can quickly overflow the maximum command-line
length. This patch avoids the issue by normalizing include paths.

@cocreature cocreature left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks!

@mergify
mergify Bot merged commit cf6814e into master Sep 9, 2019
@mergify
mergify Bot deleted the use-cc-wrapper branch September 9, 2019 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants