Skip to content

Commit 763fb2c

Browse files
adding profile and threads flags
1 parent 2634926 commit 763fb2c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

random-build.cabal

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ flag pedantic
4242
default: False
4343
manual: True
4444

45+
flag threads
46+
description: Enable threading and rtsopts
47+
default: True
48+
manual: True
49+
50+
flag profile
51+
description: Enable profiling flags
52+
default: False
53+
manual: True
54+
4555
common warnings
4656
ghc-options: -Wall
4757

@@ -118,4 +128,7 @@ executable random-build
118128

119129
hs-source-dirs: app
120130
default-language: Haskell2010
121-
ghc-options: -threaded
131+
if flag(threads)
132+
ghc-options: -threaded -rtsopts -with-rtsopts=N
133+
if flag(profile)
134+
ghc-options: -prof-cafs -prof-auto -rtsopts

0 commit comments

Comments
 (0)