Skip to content

Commit

Permalink
Use a single -with-rtsopts option
Browse files Browse the repository at this point in the history
Multiplace "-with-rtsopts" options are not concatenated so they must be
speficied completely.
  • Loading branch information
karknu authored and jutaro committed May 13, 2021
1 parent bc95c25 commit fddfc1b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cardano-node/cardano-node.cabal
Expand Up @@ -162,13 +162,16 @@ executable cardano-node
ghc-options: -threaded
-rtsopts

ghc-options: "-with-rtsopts=-T -I0 -A16m"
if arch(arm)
ghc-options: "-with-rtsopts=-N1"
if impl(ghc >= 8.10)
ghc-options: "-with-rtsopts=-T -I0 -A16m -N1 --disable-delayed-os-memory-return"
else
ghc-options: "-with-rtsopts=-T -I0 -A16m -N1"
else
ghc-options: "-with-rtsopts=-N2"
if impl(ghc >= 8.10)
ghc-options: "-with-rtsopts=--disable-delayed-os-memory-return"
if impl(ghc >= 8.10)
ghc-options: "-with-rtsopts=-T -I0 -A16m -N2 --disable-delayed-os-memory-return"
else
ghc-options: "-with-rtsopts=-T -I0 -A16m -N2"

other-modules: Paths_cardano_node

Expand Down

0 comments on commit fddfc1b

Please sign in to comment.