Skip to content

Passing RTS options to GHC via ghc-options in stack.yaml fails #5180

Closed
@TOTBWF

Description

@TOTBWF

When trying to pass in RTS options to GHC via ghc-options in stack.yaml, the RTS options aren't properly threaded through.

Steps to reproduce

  1. Create a new project via stack new
  2. Add the following to stack.yaml
ghc-options:
  "$locals": +RTS -s -RTS
  1. Run command stack build.

Expected

The RTS options are passed to GHC, and the statistics are printed out while compiling.

Actual

Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: unknown RTS option: --ghc-options

Stack version

$ stack --version
Version 2.1.3 x86_64

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions