summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Eichmann <EichmannD@gmail.com>2019-04-02 10:59:12 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-04-02 12:40:39 -0400
commitd132b30ad7ee73606c745ad7e0b81383eea69d0a (patch)
tree0bb4028811c582877cba91c81d87b47c33a6ddff
parentf54b5124bd449dd0d818725a5797e7aa9d9e9eba (diff)
downloadhaskell-d132b30ad7ee73606c745ad7e0b81383eea69d0a.tar.gz
Hadrian: lint ignore autom4te and ghc-pkg cache files.
-rw-r--r--hadrian/src/Main.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/hadrian/src/Main.hs b/hadrian/src/Main.hs
index 11ee2334d9..34e2afe23e 100644
--- a/hadrian/src/Main.hs
+++ b/hadrian/src/Main.hs
@@ -44,6 +44,15 @@ main = do
-- Enable linting file accesses in the build dir and ghc root dir
-- (cwd) when using the `--lint-fsatrace` option.
, shakeLintInside = [ cwd, buildRoot ]
+ , shakeLintIgnore =
+ -- Ignore access to the package database caches.
+ -- They are managed externally by the ghc-pkg tool.
+ [ buildRoot -/- "//package.conf.d/package.cache"
+
+ -- Ignore access to autom4te.cache directories.
+ -- They are managed externally by auto tools.
+ , "//autom4te.cache//*"
+ ]
}
rules :: Rules ()