Skip to content

Commit

Permalink
Allow cross-compilation with Hadrian
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyl20 committed Jul 4, 2023
1 parent e14600a commit 4523361
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/ghcup/GHCup/OptParse/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,6 @@ compile compileCommand settings Dirs{..} runAppState runLogger = do
VLeft e -> do
runLogger $ logError $ T.pack $ prettyHFError e
pure $ ExitFailure 9
(CompileGHC GHCCompileOptions { hadrian = True, crossTarget = Just _ }) -> do
runLogger $ logError "Hadrian cross compile support is not yet implemented!"
pure $ ExitFailure 9
(CompileGHC GHCCompileOptions {..}) ->
runCompileGHC runAppState (do
case targetGhc of
Expand Down
2 changes: 0 additions & 2 deletions lib/GHCup/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,6 @@ compileGHC targetGhc ov bstrap jobs mbuildConfig patches aargs buildFlavour hadr
m
(Maybe FilePath) -- ^ output path of bindist, None for cross
compileHadrianBindist tver workdir ghcdir = do
lEM $ execWithGhcEnv "python3" ["./boot"] (Just workdir) "ghc-bootstrap"

liftE $ configureBindist tver workdir ghcdir

lift $ logInfo "Building (this may take a while)..."
Expand Down

0 comments on commit 4523361

Please sign in to comment.