diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-11-04 18:43:33 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-11-04 18:43:33 -0400 |
commit | 2ea74e0d1b3f785b318d6d2681b2f5cfe505faeb (patch) | |
tree | 1c9acfe39d14670987cb6d91c6231c0a65161aa2 | |
parent | d822b9ecee5001f77c0dc99da0b6dbf35d4fc6dd (diff) | |
download | haskell-wip/tsan/cmm.tar.gz |
hadrian: Don't specify TSAN_ENABLED in +thread_sanitizerwip/tsan/cmm
This is implied by the CPP guards in TSANUtils.h
-rw-r--r-- | hadrian/src/Flavour.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index 46a1ef7d23..ff724aae80 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -181,9 +181,9 @@ 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 CompileCWithGhc) ? (arg "-optc-fsanitize=thread") , builder (Ghc LinkHs) ? arg "-optl-fsanitize=thread" , builder (Cc CompileC) ? (arg "-fsanitize=thread" <> arg "-DTSAN_ENABLED") , builder (Cabal Flags) ? arg "thread-sanitizer" |