Skip to content

Commit

Permalink
debug in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Sep 24, 2023
1 parent 745c720 commit 0cead37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cabal/src/Distribution/Simple/Program/Builtin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ ldProgram =
-- choice for windows linking does not support this feature. However
-- if using binutils ld or another linker that supports --relocatable,
-- we should still be good to generate pre-linked objects.
ldHelpOutput <-
ldHelpOutput <- do
_ <- error "Distribution.Simple.Program.Builtin.ldProgram"
getProgramInvocationOutput
verbosity
(programInvocation ldProg ["--help"])
Expand Down
4 changes: 3 additions & 1 deletion Cabal/src/Distribution/Simple/Setup/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ configureCCompiler
configureCCompiler verbosity progdb = configureProg verbosity progdb gccProgram

configureLinker :: Verbosity -> ProgramDb -> IO (FilePath, [String])
configureLinker verbosity progdb = configureProg verbosity progdb ldProgram
configureLinker verbosity progdb = do
_ <- error $ show ldProgram
configureProg verbosity progdb ldProgram

configureProg
:: Verbosity
Expand Down

0 comments on commit 0cead37

Please sign in to comment.