Skip to content

Commit

Permalink
Fully enable internal-interpreter in stage2 (it works!)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyl20 committed Jan 29, 2025
1 parent 8aae70a commit bb262b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ main = do
ghc1' <- Ghc <$> makeAbsolute "_build/stage1/bin/ghc"
buildGhcStage2 defaultGhcBuildOptions cabal ghc1' "_build/stage2/"

-- copy stage1's boot packages for stage2 to use.
cp "_build/stage1/pkgs/*" "_build/stage2/pkgs"

msg "Done"


Expand Down Expand Up @@ -177,6 +180,8 @@ buildGhcStage booting opts cabal ghc0 dst = do
, " " ++ src </> "libraries/directory/"
, " " ++ src </> "libraries/file-io/"
, " " ++ src </> "libraries/filepath/"
, " " ++ src </> "libraries/haskeline/"
, " " ++ src </> "libraries/terminfo/"
, " " ++ src </> "libraries/ghc-platform/"
, " " ++ src </> "libraries/ghc-boot/"
, " " ++ src </> "libraries/ghc-boot-th/"
Expand Down Expand Up @@ -216,6 +221,12 @@ buildGhcStage booting opts cabal ghc0 dst = do
, "package ghci"
, " flags: +internal-interpreter"
, ""
, "package ghc-bin"
, " flags: +internal-interpreter"
, ""
, "package haskeline"
, " flags: -terminfo" -- FIXME: should be enabled but I don't have the static libs for terminfo on ArchLinux...
, ""
, "package text"
-- FIXME: avoid having to deal with system-cxx-std-lib fake package for now
, " flags: -simdutf"
Expand Down

0 comments on commit bb262b9

Please sign in to comment.