summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Flavours
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-01 11:50:44 -0500
committerBen Gamari <ben@smart-cactus.org>2020-10-24 20:59:39 -0400
commitccf2d4b091284a60acc6c16d166ea7cafade209f (patch)
tree20af66bb3ffb2e05c3e3960473b6c4da015b1241 /hadrian/src/Settings/Flavours
parentb9d4dd9cbc4f1dd40e6beaf5d8301ac9d3034fca (diff)
downloadhaskell-ccf2d4b091284a60acc6c16d166ea7cafade209f.tar.gz
rts: Infrastructure for testing with ThreadSanitizer
Diffstat (limited to 'hadrian/src/Settings/Flavours')
-rw-r--r--hadrian/src/Settings/Flavours/ThreadSanitizer.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Flavours/ThreadSanitizer.hs b/hadrian/src/Settings/Flavours/ThreadSanitizer.hs
new file mode 100644
index 0000000000..722370f5cd
--- /dev/null
+++ b/hadrian/src/Settings/Flavours/ThreadSanitizer.hs
@@ -0,0 +1,9 @@
+module Settings.Flavours.ThreadSanitizer (threadSanitizerFlavour) where
+
+import Flavour
+import Settings.Flavours.Validate
+
+threadSanitizerFlavour :: Flavour
+threadSanitizerFlavour =
+ enableThreadSanitizer (validateFlavour
+ { name = "thread-sanitizer" })