[Haskell-cafe] Is Cabal ignoring "-with-rtsopts"?
allbery.b at gmail.com
Sun Oct 20 19:58:44 UTC 2013
On Sun, Oct 20, 2013 at 12:25 PM, Roman Cheplyaka <roma at ro-che.info> wrote:
> * Roman Cheplyaka <roma at ro-che.info> [2013-10-20 19:16:34+0300]
> > * 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
> > > even look at the cabal file).
> > Not really. -with-rtsopts is a linking-time flag that sets the default
> > RTS options.
> Oh, I think I misunderstood what you're saying. You were pointing out
> that Alfredo didn't recompile his program. I thought you're saying that
> this isn't supposed to work at all.
Right. I considered mentioning the distinction between compile-time and
link-time, but as cabal-install doesn't expose such a distinction it's
pretty pointless. Maybe I should have said "build" instead of "compile"
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe