Ticket #818 (closed defect: wontfix)

Opened 2 years ago

Last modified 15 months ago

cabal sdist warns about optimization levels

Reported by: guest Owned by:
Priority: normal Milestone:
Component: cabal-install tool Version: 1.10.1.0
Severity: normal Keywords:
Cc: dagitj@… Difficulty: unknown
GHC Version: Platform:

Description

For some reason 'cabal sdist' dislikes fast code so much that it tells me not to use -O2. What does it know about my needs and my project?

See below for an example:

$ cabal sdist
Distribution quality warnings:
'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit
and not just imposing longer compile times on your users.

Is there a way to disable this warning in my .cabal file? If not, can the warning please be removed? It doesn't seems appropriate for sdist to tell me which compiler flags I should use to optimize my code.

Change History

Changed 15 months ago by kosmikus

I think the warning is adequate.

Changed 15 months ago by kosmikus

  • status changed from new to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.