[Git][ghc/ghc][wip/T18131] hadrian: Don't track GHC's verbosity argument
Ben Gamari
gitlab at gitlab.haskell.org
Mon May 25 02:38:04 UTC 2020
Ben Gamari pushed to branch wip/T18131 at Glasgow Haskell Compiler / GHC
Commits:
f1acf119 by Ben Gamari at 2020-05-24T22:37:53-04:00
hadrian: Don't track GHC's verbosity argument
Teach hadrian to ignore GHC's -v argument in its recompilation check,
thus fixing #18131.
- - - - -
1 changed file:
- hadrian/src/Target.hs
Changes:
=====================================
hadrian/src/Target.hs
=====================================
@@ -20,7 +20,9 @@ type Target = H.Target Context Builder
-- 'True' only if the argument needs to be tracked.
trackArgument :: Target -> String -> Bool
trackArgument target arg = case builder target of
- (Make _) -> not $ threadArg arg
- _ -> True
+ Make _ -> not $ threadArg arg
+ Ghc _ _ -> not $ verbosityArg arg
+ _ -> True
where
threadArg s = dropWhileEnd isDigit s `elem` ["-j", "MAKEFLAGS=-j", "THREADS="]
+ verbosityArg s = dropWhileEnd isDigit s == "-v"
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f1acf1199e4094e16a3d2fbfb6b8129bf471b658
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f1acf1199e4094e16a3d2fbfb6b8129bf471b658
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200524/5d463120/attachment-0001.html>
More information about the ghc-commits
mailing list