简体   繁体   中英

Specify ghc options at command line via cabal (cabal-install) without editing .cabal files of packages

When I install vector with:

cabal install vector

I get lots of SpecConstr limit warnings which would go away if I could specify -fspec-constr-count=SOMETHING-HIGHER .

  1. Would

     cabal install vector -fspec-constr-count=HIGH 

    work?

  2. If X depends on vector , is there a way to say in X.cabal I depend on vector with preferably (in case X is not yet already installed) -fpsec-constr-count=HIGH ?

  3. Is vector still maintained or is there now a more recommendable alternative?

您可以使用--PROG-options=OPTS将额外选项传递给Cabal运行的程序。

cabal install vector --ghc-options=-fspec-constr-count=HIGH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM