[Haskell-cafe] Is Cabal ignoring "-with-rtsopts"?

Roman Cheplyaka roma at ro-che.info
Sun Oct 20 16:16:34 UTC 2013


* Brandon Allbery <allbery.b at gmail.com> [2013-10-20 12:08:59-0400]
> On Sun, Oct 20, 2013 at 11:50 AM, Alfredo Di Napoli <
> alfredo.dinapoli at gmail.com> wrote:
> 
> > strangely enough, now that I've recompiled the program cabal does pass the
> > correct flag and everything works as expected.
> >
> 
> Yes, that is in ghc-options and therefore only does something when you
> compile; it's not consulted at runtime (indeed, running a program doesn't
> even look at the cabal file).

Not really. -with-rtsopts is a linking-time flag that sets the default
RTS options. See
http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/runtime-control.html#rts-opts-compile-time

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131020/e13d8609/attachment.sig>


More information about the Haskell-Cafe mailing list