From 9d3a27b7456eb9223e6725a4d92c175420c01fdc Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Wed, 8 Nov 2023 16:51:01 +0000 Subject: [PATCH] debugging --- Cabal/src/Distribution/Simple/Program/Find.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cabal/src/Distribution/Simple/Program/Find.hs b/Cabal/src/Distribution/Simple/Program/Find.hs index 9cff1020abf..7777e484645 100644 --- a/Cabal/src/Distribution/Simple/Program/Find.hs +++ b/Cabal/src/Distribution/Simple/Program/Find.hs @@ -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