Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering committed Nov 8, 2023
1 parent a4102f3 commit 9d3a27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Simple/Program/Find.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ findProgramOnSearchPath verbosity searchpath prog = do
findFirstExe [dir </> prog <.> ext | ext <- exeExtensions]
-- On windows, getSystemSearchPath is not guaranteed 100% correct so we
-- use findExecutable and then approximate the not-found-at locations.
tryPathElem ProgramSearchPathDefault | buildOS == Windows = do
tryPathElem ProgramSearchPathDefault | buildOS == Windows,False = do
debug verbosity $ "Candidates:" ++ (show [prog <.> ext | ext <- exeExtensions ])
mExe <- firstJustM [findExecutable (prog <.> ext) | ext <- exeExtensions]
syspath <- getSystemSearchPath
Expand Down

0 comments on commit 9d3a27b

Please sign in to comment.