Skip to content

bintools: Add response file support to ld-wrapper#2

Merged
Gabriella439 merged 1 commit intoghc944-on-incremental-stdenv-fixfrom
gabriella/linker_response_files
Feb 22, 2023
Merged

bintools: Add response file support to ld-wrapper#2
Gabriella439 merged 1 commit intoghc944-on-incremental-stdenv-fixfrom
gabriella/linker_response_files

Conversation

@Gabriella439
Copy link

The motivation behind this is to alleviate the problem described in NixOS#41340. I'm not sure if this completely fixes the problem, but it eliminates one more area where we can exceed command line length limits.

This is essentially the same change as in NixOS#112449, except for ld-wrapper.sh instead of cc-wrapper.sh.

However, that change alone was not enough; on macOS the ld provided by darwin.cctools fails if you use process substitution to generate the response file, so I put up two PRs to fix that:

tpoechtrager/cctools-port#131
tpoechtrager/cctools-port#132

… and I included a patch referencing that fix so that the new ld-wrapper still works on macOS.

The motivation behind this is to alleviate the problem
described in NixOS#41340.
I'm not sure if this completely fixes the problem, but it
eliminates one more area where we can exceed command line
length limits.

This is essentially the same change as in NixOS#112449,
except for `ld-wrapper.sh` instead of `cc-wrapper.sh`.

However, that change alone was not enough; on macOS the
`ld` provided by `darwin.cctools` fails if you use process
substitution to generate the response file, so I put up two
PRs to fix that:

tpoechtrager/cctools-port#131
tpoechtrager/cctools-port#132

… and I included a patch referencing that fix so that the
new `ld-wrapper` still works on macOS.
@Gabriella439
Copy link
Author

For reference, the corresponding upstream PR against Nixpkgs is: NixOS#213831

@Gabriella439 Gabriella439 merged commit 412e9cb into ghc944-on-incremental-stdenv-fix Feb 22, 2023
@Gabriella439 Gabriella439 deleted the gabriella/linker_response_files branch February 22, 2023 23:17
9999years pushed a commit that referenced this pull request Jul 7, 2023
flutter: Separate cache and unwrapped derivations #2
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.

2 participants