-
Notifications
You must be signed in to change notification settings - Fork 724
Closed
Labels
cabal-install: cmd/checkre: -O2Concerning `-O2` optimization levelConcerning `-O2` optimization levelre: flagConcerning user-defined flags in cabal filesConcerning user-defined flags in cabal filestype: bug
Description
I have a .cabal-file that passes ghc-options: -O2 under a specific flag:
https://raw.githubusercontent.com/haskell-hvr/regex-tdfa/master/regex-tdfa.cabal
cabal check issues a warning.
$ cabal check
Warning: These warnings may cause trouble when distributing the package:
Warning: 'ghc-options: -O2' is rarely needed. Check that it is giving a real
benefit and not just imposing longer compile times on your users.
I think the warning should not be issued if -O2 is only passed to ghc under a flag.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cabal-install: cmd/checkre: -O2Concerning `-O2` optimization levelConcerning `-O2` optimization levelre: flagConcerning user-defined flags in cabal filesConcerning user-defined flags in cabal filestype: bug