From ba3d4e1c43e6772f11f9a7105ef4bf3be8efb2df Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 28 Mar 2022 15:27:21 -0400 Subject: Basic response file support Here we introduce support into our command-line parsing infrastructure and driver for handling gnu-style response file arguments, typically used to work around platform command-line length limitations. Fixes #16476. --- docs/users_guide/using.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/users_guide/using.rst') diff --git a/docs/users_guide/using.rst b/docs/users_guide/using.rst index 628dfab0f3..ee61a89ce1 100644 --- a/docs/users_guide/using.rst +++ b/docs/users_guide/using.rst @@ -85,6 +85,17 @@ all files; you cannot, for example, invoke ``ghc -c -O1 Foo.hs -O2 Bar.hs`` to apply different optimisation levels to the files ``Foo.hs`` and ``Bar.hs``. +In addition to passing arguments via the command-line, arguments can be passed +via GNU-style response files. For instance, + +.. code-block:: bash + + $ cat response-file + -O1 + Hello.hs + -o Hello + $ ghc @response-file + .. note:: .. index:: -- cgit v1.2.1