diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-11-11 18:32:43 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-12-15 03:54:02 -0500 |
commit | 75855643ee22508ca478f63e8cbc61338029ab66 (patch) | |
tree | dcc7599075c473e4fdd7078574c1de810e7aeacb /hadrian | |
parent | e9e161bb8f416a0cfd1ba7918f9ffafb19cd8372 (diff) | |
download | haskell-75855643ee22508ca478f63e8cbc61338029ab66.tar.gz |
hadrian: Don't enable TSAN in stage0 build
Diffstat (limited to 'hadrian')
-rw-r--r-- | hadrian/src/Flavour.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index 58baa7c3a9..2ae5334323 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -204,7 +204,7 @@ splitSections = splitSectionsIf (/=ghc) -- there is little benefit. enableThreadSanitizer :: Flavour -> Flavour -enableThreadSanitizer = addArgs $ mconcat +enableThreadSanitizer = addArgs $ notStage0 ? mconcat [ builder (Ghc CompileHs) ? arg "-optc-fsanitize=thread" , builder (Ghc CompileCWithGhc) ? (arg "-optc-fsanitize=thread" <> arg "-DTSAN_ENABLED") , builder (Ghc LinkHs) ? arg "-optl-fsanitize=thread" |