on iko/ghcjs-patch-master help sign in
Adds experimental TSan logic. This will require a custom compiler
commit0f640b42854ee63cdaeee5b0de8cc4b2f6a9d851 authorMoritz Angermann <moritz.angermann@gmail.com> dateThu 24 Sep 2020, 07:42 (6 years ago) parentd3d7742
1 file changed+3
builder/comp-builder.nix+3
builder/comp-builder.nix+3
@@ -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"