forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request haskell#9367 from MercuryTechnologies/gabriella/re…
…sponse_files_2 Use response files for `ghc` invocations
- Loading branch information
Showing
6 changed files
with
191 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
synopsis: "Use response files when calling `ghc`" | ||
packages: [Cabal] | ||
prs: 9367 | ||
--- | ||
|
||
Cabal now passes GHC arguments through a response file. This prevents an error | ||
where very large packages would fail to build due to the module names exceeding | ||
the `ARG_MAX` command-line length limit: | ||
|
||
``` | ||
ghc: createProcess: posix_spawnp: resource exhausted (Argument list too long) | ||
``` | ||
|
||
Notes: | ||
- Response files will not be used if the first argument to `ghc` is | ||
`--interactive`. | ||
- RTS options (like `+RTS -H32m -S -RTS`) will not be included in response | ||
files. | ||
- For reproducing commands after Cabal exits, `--keep-temp-files` can be used | ||
to prevent the response files from being deleted. |