diff options
Diffstat (limited to 'hadrian/src/Rules/BinaryDist.hs')
-rw-r--r-- | hadrian/src/Rules/BinaryDist.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hadrian/src/Rules/BinaryDist.hs b/hadrian/src/Rules/BinaryDist.hs index e53f686512..b47eff4eec 100644 --- a/hadrian/src/Rules/BinaryDist.hs +++ b/hadrian/src/Rules/BinaryDist.hs @@ -203,6 +203,18 @@ bindistRules = do ghcPkgName <- programName (vanillaContext Stage1 ghcPkg) cmd_ (bindistFilesDir -/- "bin" -/- ghcPkgName) ["recache"] + + -- HACK: Drop stuff from lintersCommon package as this for GHC developers and not of interest to end-users (#21203) + pkg_id <- pkgIdentifier lintersCommon + cmd_ (bindistFilesDir -/- "bin" -/- ghcPkgName) ["unregister", pkg_id] + removeDirectory (bindistFilesDir -/- "lib" -/- distDir -/- pkg_id) + + removeFile =<< + ((bindistFilesDir -/- "lib" -/- distDir) -/-) + <$> pkgRegisteredLibraryFileName (Context Stage1 lintersCommon dynamic) + + + -- The settings file must be regenerated by the bindist installation -- logic to account for the environment discovered by the bindist -- configure script on the host. Not on Windows, however, where |