can't make my executable accept runtime options

10 views
Skip to first unread message

Eugene Perederey

unread,
Nov 19, 2011, 12:30:22 AM11/19/11
to Stanford CS240h 2011 Autumn
Compile with
ghc -O -rtsopts --make main.hs

Try to increase the stack size
./main +RTS -M50 -RTS
main: Most RTS options are disabled. Link with -rtsopts to enable
them.

ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3

Does anybody have this problem on Mac OS X?

Bryan O'Sullivan

unread,
Nov 19, 2011, 12:33:20 AM11/19/11
to stanford-1...@googlegroups.com
On Fri, Nov 18, 2011 at 9:30 PM, Eugene Perederey <eugene.p...@gmail.com> wrote:
Compile with
ghc -O -rtsopts --make main.hs

When you build with --make, if GHC spots that it has nothing to do, it will not recompile.

Try adding -fforce-recomp to force it to redo the linking, or else delete the binary and try again. 

Reply all
Reply to author
Forward
0 new messages