File tree 3 files changed +17
-11
lines changed
cabal-install/tests/UnitTests/Distribution/Client 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ configureTests = testGroup "Configure tests"
98
98
99
99
, testCase " Local program options" $ do
100
100
let ghcFlags = [" -fno-full-laziness" ]
101
- flags = (defaultNixStyleFlags () )
101
+ flags = (defaultNixStyleFlags () )
102
102
{ configFlags = mempty
103
103
{ configVerbosity = Flag silent
104
104
, configProgramArgs = [(" ghc" , ghcFlags)]
Original file line number Diff line number Diff line change
1
+ synopsis: Apply local options only to local packages
2
+ packages: cabal-install
3
+ prs: #7973
4
+ issues: #7998
5
+
6
+ description: {
7
+ - Command-line `ghc-options` only applies to local packages
8
+ - `program-options` stanza only applies to local packages
9
+ }
Original file line number Diff line number Diff line change @@ -643,16 +643,13 @@ an external dependency) should be built with ``-fno-state-hack``::
643
643
package bytestring
644
644
ghc-options: -fno-state-hack
645
645
646
- ``ghc-options `` is not specifically described in this documentation,
647
- but is one of many fields for configuring programs. They take the form
648
- ``progname-options `` and ``progname-location ``, and
649
- can only be set inside package stanzas. (TODO: They are not supported
650
- at top-level, see :issue: `3579 `.)
651
-
652
- At the moment, there is no way to specify an option to apply to all
653
- external packages or all inplace packages. Additionally, it is only
654
- possible to specify these options on the command line for all local
655
- packages (there is no per-package command line interface.)
646
+ ``ghc-options `` is not specifically described in this documentation, but is one
647
+ of many fields for configuring programs. They take the form
648
+ ``progname-options `` and ``progname-location ``, and can be set for all local
649
+ packages in a ``program-options `` stanza or under a package stanza.
650
+
651
+ On the command line, these options are applied to all local packages.
652
+ There is no per-package command line interface.
656
653
657
654
Some flags were added by more recent versions of the Cabal library. This
658
655
means that they are NOT supported by packages which use Custom setup
You can’t perform that action at this time.
0 commit comments