Skip to content

Commit 0f640b4

Browse files
committed
Adds experimental TSan logic. This will require a custom compiler
1 parent d3d7742 commit 0f640b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builder/comp-builder.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ let self =
6262
# Debug
6363
, enableDebugRTS ? false
6464
, enableDWARF ? false
65+
# This will only work with a custom TSan way enabled custom compiler
66+
, enableTSanRTS ? false
6567

6668
# LLVM
6769
, useLLVM ? ghc.useLLVM
@@ -143,6 +145,7 @@ let
143145
++ configureFlags
144146
++ (ghc.extraConfigureFlags or [])
145147
++ lib.optional enableDebugRTS "--ghc-option=-debug"
148+
++ lib.optional enableTSanRTS "--ghc-option=-tsan"
146149
++ lib.optional enableDWARF "--ghc-option=-g"
147150
++ lib.optionals useLLVM [
148151
"--ghc-option=-fPIC" "--gcc-option=-fPIC"

0 commit comments

Comments
 (0)