diff options
author | Peter Becich <peterbecich@gmail.com> | 2022-05-09 23:25:39 -0700 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-08-17 08:43:21 +0100 |
commit | 3e493dfd4db4b61ffc3f1faf7e38663118473d99 (patch) | |
tree | 9891f1b9bdb376f2233cb73ffeaf1c893e8f417a /utils/hpc/HpcReport.hs | |
parent | a4212edccceaec475d4aca240cbfe9db98b77d33 (diff) | |
download | haskell-3e493dfd4db4b61ffc3f1faf7e38663118473d99.tar.gz |
Implement Response File support for HPC
This is an improvement to HPC authored by Richard Wallace
(https://github.com/purefn) and myself. I have received permission from
him to attempt to upstream it. This improvement was originally
implemented as a patch to HPC via input-output-hk/haskell.nix:
https://github.com/input-output-hk/haskell.nix/pull/1464
Paraphrasing Richard, HPC currently requires all inputs as command line arguments.
With large projects this can result in an argument list too long error.
I have only seen this error in Nix, but I assume it can occur is a plain Unix environment.
This MR adds the standard response file syntax support to HPC. For
example you can now pass a file to the command line which contains the
arguments.
```
hpc @response_file_1 @response_file_2 ...
The contents of a Response File must have this format:
COMMAND ...
example:
report my_library.tix --include=ModuleA --include=ModuleB
```
Updates hpc submodule
Co-authored-by: Richard Wallace <rwallace@thewallacepack.net>
Fixes #22050
Diffstat (limited to 'utils/hpc/HpcReport.hs')
-rw-r--r-- | utils/hpc/HpcReport.hs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/hpc/HpcReport.hs b/utils/hpc/HpcReport.hs index 4c975be425..ee5924fcd4 100644 --- a/utils/hpc/HpcReport.hs +++ b/utils/hpc/HpcReport.hs @@ -275,5 +275,3 @@ report_options . resetHpcDirsOpt . xmlOutputOpt . verbosityOpt - - |