[Haskell-beginners] -with-rtsopts ignored at compile time

Brandon Allbery allbery.b at gmail.com
Mon Oct 21 18:03:13 UTC 2013


On Mon, Oct 21, 2013 at 1:51 PM, Kees Bleijenberg <
k.bleijenberg at lijbrandt.nl> wrote:

> I understand the problem.  I’ve set the GHCRTS environment variable and
> when I run the program I get : <unknown>: Most RTS options are disabled.
> Link with –rtsopts to enable them.  ****
>
> Then I added rtsopts to the command line: ghc -shared -rtsopts -O2 -o
> TBGlas.dll TBGlasDll.hs****
>
> and I get the same errormessage again: Most RTS options are……   What is
> the problem?
>

Exact same issue. Those cannot be per DLL, they apply to the final program
(what would it mean for only some DLLs to allow RTS options? There's only
one runtime!); and you'd probably have to use the same mechanism I pointed
at before if you're invoking hs_main() from C instead of using a Haskell
main function.

-- 
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...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131021/4ed22155/attachment-0001.html>


More information about the Beginners mailing list