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

[wip] {cc,bintools}-wrapper: handle $out/nix-support/skip-flags #43818

Closed

Conversation

matthewbauer
Copy link
Member

This is a new flag that is checked to prevent the wrappers from adding
CFLAGS & LDFLAGS. It should be used sparingly but in the case of
Haskell packages, it is necessary to avoid hitting ARG_MAX limits.
Haskell has its own way of handling deps which is done in
generic-builder.nix. Skipping the {C,LD}FLAGS is a harmless way to
reduce ARG_MAX.

Related to PR #43713.

/cc @angerman @Ericson2314 @peti

This is still a work in progress. Unfortunately it is a mass-rebuild so it could take a while. I am still waiting on building the stdenv. It should accomplish the same thing as PR #43713 with the upside of avoiding the need to move the ```--libdir`` flag.

This is a new flag that is checked to prevent the wrappers from adding
CFLAGS & LDFLAGS. It should be used sparingly but in the case of
Haskell packages, it is necessary to avoid hitting ARG_MAX limits.
Haskell has its own way of handling deps which is done in
generic-builder.nix. Skipping the {C,LD}FLAGS is a harmless way to
reduce ARG_MAX.

Related to PR NixOS#43713.

/cc @angerman @Ericson2314 @peti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants