summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2022-07-27 16:29:07 +0530
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-28 00:49:22 -0400
commit750846cd2c51613d2bbd0029a304d07fae2c2972 (patch)
tree66f713a9453126bdc5657bc30d48269e5e506f2f
parenta8ed36f9583a7936afc066d8bec20b41ef3a3d1a (diff)
downloadhaskell-750846cd2c51613d2bbd0029a304d07fae2c2972.tar.gz
Pass correct package db when testing stage1.
It used to pick the db for stage-2 which obviously didn't work.
-rw-r--r--hadrian/src/Rules/Test.hs2
-rw-r--r--hadrian/src/Settings/Default.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Rules/Test.hs b/hadrian/src/Rules/Test.hs
index abe78b79ab..f1fb204c88 100644
--- a/hadrian/src/Rules/Test.hs
+++ b/hadrian/src/Rules/Test.hs
@@ -120,7 +120,7 @@ testRules = do
writeFile' path $ unlines ["#!/bin/sh",unwords ((abs_prog_path : flags) ++ ["${1+\"$@\"}"])]
makeExecutable path
else if prog == "ghc-pkg" then do
- let flags = ["-no-global-package-db", "--no-user-package-db", "--global-package-db", pkgDb]
+ let flags = ["--no-user-package-db", "--global-package-db", pkgDb]
writeFile' path $ unlines ["#!/bin/sh",unwords ((abs_prog_path : flags) ++ ["${1+\"$@\"}"])]
makeExecutable path
else createFileLink abs_prog_path path
diff --git a/hadrian/src/Settings/Default.hs b/hadrian/src/Settings/Default.hs
index c6f23b55a7..8e8729544b 100644
--- a/hadrian/src/Settings/Default.hs
+++ b/hadrian/src/Settings/Default.hs
@@ -100,12 +100,12 @@ stage0Packages = do
, text
, transformers
, unlit
+ , hp2ps
, if winTarget then win32 else unix
]
++ [ terminfo | not windowsHost, not cross ]
++ [ timeout | windowsHost ]
++ [ touchy | windowsHost ]
- ++ [ hp2ps | cross ]
-- | Packages built in 'Stage1' by default. You can change this in "UserSettings".
stage1Packages :: Action [Package]