<div dir="ltr">I'm trying to compile an executable which will totally ignore RTS options flags (have the runtime completely ignore them). It seemed like a combo of -rtsopts=none and -no-rtsopts-suggestions[1] would achieve this. However, I can't figure out what the presence of that flag is doing. Can someone give me a pointer to what my expected behavior should be here, and even better how to achieve my goal of having the runtime ignore +RTS on the command line?<div><br></div><div><div>$ cat Main.hs</div><div>import System.Environment</div><div>main = getArgs >>= print</div><div>$ ghc -rtsopts=none -no-rtsopts-suggestions Main.hs -fforce-recomp && ./Main +RTS -s</div><div>[1 of 1] Compiling Main             ( Main.hs, Main.o )</div><div>Linking Main ...</div><div>Main: RTS options are disabled. Link with -rtsopts to enable them.</div><div>$ ghc -rtsopts=none Main.hs -fforce-recomp && ./Main +RTS -s</div><div>[1 of 1] Compiling Main             ( Main.hs, Main.o )</div><div>Linking Main ...</div><div>Main: RTS options are disabled. Link with -rtsopts to enable them.</div><div><div><br></div><div>[1] <a href="https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/phases.html?highlight=rtsopts#ghc-flag--no-rtsopts-suggestions">https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/phases.html?highlight=rtsopts#ghc-flag--no-rtsopts-suggestions</a></div></div></div></div>