[commit: ghc] master: Follow GHC changes (#479) (4499b29)

git at git.haskell.org git at git.haskell.org
Tue Oct 23 20:12:30 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4499b294e4a53f71f8808d6eb55a7dd0b341cfb8/ghc

>---------------------------------------------------------------

commit 4499b294e4a53f71f8808d6eb55a7dd0b341cfb8
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Nov 20 22:51:40 2017 +0000

    Follow GHC changes (#479)


>---------------------------------------------------------------

4499b294e4a53f71f8808d6eb55a7dd0b341cfb8
 src/Rules/Program.hs     | 3 ---
 src/Settings/Warnings.hs | 2 --
 2 files changed, 5 deletions(-)

diff --git a/src/Rules/Program.hs b/src/Rules/Program.hs
index ba4dab0..dca177f 100644
--- a/src/Rules/Program.hs
+++ b/src/Rules/Program.hs
@@ -92,7 +92,6 @@ buildWrapper context at Context {..} wrapper wrapperPath wrapped = do
     putSuccess $ "| Successfully created wrapper for " ++
         quote (pkgName package) ++ " (" ++ show stage ++ ")."
 
--- TODO: Get rid of the Paths_hsc2hs.o hack.
 buildBinary :: [(Resource, Int)] -> FilePath -> Context -> Action ()
 buildBinary rs bin context at Context {..} = do
     binDeps <- if stage == Stage0 && package == ghcCabal
@@ -107,8 +106,6 @@ buildBinary rs bin context at Context {..} = do
             cObjs  <- mapM (objectPath context) cSrcs
             hsObjs <- hsObjects context
             return $ cObjs ++ hsObjs
-                  ++ [ path -/- "Paths_hsc2hs.o"  | package == hsc2hs  ]
-                  ++ [ path -/- "Paths_haddock.o" | package == haddock ]
     need binDeps
     buildWithResources rs $ target context (Ghc LinkHs stage) binDeps [bin]
     synopsis <- traverse pkgSynopsis (pkgCabalFile package)
diff --git a/src/Settings/Warnings.hs b/src/Settings/Warnings.hs
index 8c42217..abbc814 100644
--- a/src/Settings/Warnings.hs
+++ b/src/Settings/Warnings.hs
@@ -32,8 +32,6 @@ warningArgs = builder Ghc ? do
         , package binary       ? pure [ "-Wno-deprecations" ]
         , package bytestring   ? pure [ "-Wno-inline-rule-shadowing" ]
         , package compiler     ? pure [ "-Wcpp-undef" ]
-        -- FIXME: See https://phabricator.haskell.org/D4121#117481.
-        , input "//SysTools.hs" ? pure [ "-Wno-unused-imports" ]
         , package directory    ? pure [ "-Wno-unused-imports" ]
         , package ghc          ? pure [ "-Wcpp-undef" ]
         , package ghcPrim      ? pure [ "-Wno-trustworthy-safe" ]



More information about the ghc-commits mailing list