diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-02-28 11:43:52 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-03-20 20:43:41 -0400 |
commit | faa36e5b3674a7b2cfc6b931eec27b3558fad33b (patch) | |
tree | 2774efc11e96109b6354a56bbbc8909beed2a88f | |
parent | 73a7383ebc17f495d7acd04007c8c56b46532cb6 (diff) | |
download | haskell-faa36e5b3674a7b2cfc6b931eec27b3558fad33b.tar.gz |
Hadrian: ignore in-tree GMP objects with ``--lint``
-rw-r--r-- | hadrian/src/Main.hs | 3 | ||||
-rw-r--r-- | hadrian/src/Rules/Gmp.hs | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/hadrian/src/Main.hs b/hadrian/src/Main.hs index 5bd7101180..36b1fd3cc1 100644 --- a/hadrian/src/Main.hs +++ b/hadrian/src/Main.hs @@ -65,6 +65,9 @@ main = do -- Ignore access to autom4te.cache directories. -- They are managed externally by auto tools. , "//autom4te.cache/**" + + -- Ignore in-tree GMP objects + , buildRoot -/- "**/gmp/objs/**" ] } diff --git a/hadrian/src/Rules/Gmp.hs b/hadrian/src/Rules/Gmp.hs index 405c251b8b..3fe45d251f 100644 --- a/hadrian/src/Rules/Gmp.hs +++ b/hadrian/src/Rules/Gmp.hs @@ -22,12 +22,10 @@ gmpObjects s = do integerGmpPath <- buildPath ctx need [integerGmpPath -/- "include/ghc-gmp.h"] - -- The line below causes a Shake Lint failure on Windows, which forced - -- us to disable Lint by default (we don't track the object files of the - -- in-tree GMP library). - -- See more details here: https://gitlab.haskell.org/ghc/ghc/issues/15971. gmpPath <- gmpIntreePath s map (unifyPath . (gmpPath -/-)) <$> + -- Note we don't track the object files of the in-tree GMP library (cf + -- #15971). liftIO (getDirectoryFilesIO gmpPath [gmpObjectsDir -/- "*.o"]) -- | Build directory for in-tree GMP library |