From 1ee07a55baba4c9cd1f268f5e9fdfe1b6b98bf00 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 21 Nov 2022 16:14:33 -0500 Subject: hadrian: Enable Cmm instrumentation in TSAN flavour --- hadrian/src/Flavour.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index c84ffba545..9c28397b31 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -207,7 +207,7 @@ splitSections = splitSectionsIf (/=ghc) -- configure with @--disable-large-address-space@ when using this. enableThreadSanitizer :: Flavour -> Flavour enableThreadSanitizer = addArgs $ notStage0 ? mconcat - [ builder (Ghc CompileHs) ? arg "-optc-fsanitize=thread" + [ builder (Ghc CompileHs) ? (arg "-optc-fsanitize=thread" <> arg "-fcmm-thread-sanitizer") , builder (Ghc CompileCWithGhc) ? arg "-optc-fsanitize=thread" , builder (Ghc LinkHs) ? (arg "-optc-fsanitize=thread" <> arg "-optl-fsanitize=thread") , builder Cc ? arg "-fsanitize=thread" -- cgit v1.2.1