haskell / haskell/cabal

How do I pass RTS options to ghc itself when using cabal?

Open
#8,924 4 comments 0 reactions 0 assignees View on GitHub
type: user-question
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

How do I pass RTS options to ghc itself when using cabal?

This is the problem I'm hitting with `ghc-9.4.5`

```
$ cabal build all --enable-tests --enable-benchmarks
Resolving dependencies...
Build profile: -w ghc-9.4.5 -O1
...
ghc-9.4.5: Stack space overflow: current size 33624 bytes.
ghc-9.4.5: Use `+RTS -Ksize -RTS' to increase it.
```

I've looked in the cabal users' guide and can't find how to do this.

Contributor guide

Open the contributing guide

Research direction

The issue points to the Cabal user's guide and the `cabal build all --enable-tests --enable-benchmarks` command; begin by locating the guide section covering GHC options and checking how RTS options are passed to GHC. Done means the guide clearly documents the supported invocation for `+RTS ... -RTS` options.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system, cli
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.