hadrian: handle findExecutable "" gracefully
hadrian may invoke findExecutable "" at run-time due to a certain program is not found by configure script. Which is fine and findExecutable is supposed to return Nothing in this case. However, on Windows there's a directory bug that throws an exception (see https://github.com/haskell/directory/issues/180), so we might as well use a wrapper for findExecutable and handle exceptions gracefully. (cherry picked from commit 1e5752f6)
Showing
- hadrian/src/Hadrian/Utilities.hs 5 additions, 0 deletionshadrian/src/Hadrian/Utilities.hs
- hadrian/src/Rules/Docspec.hs 0 additions, 2 deletionshadrian/src/Rules/Docspec.hs
- hadrian/src/Rules/Lint.hs 0 additions, 1 deletionhadrian/src/Rules/Lint.hs
- hadrian/src/Settings/Builders/RunTest.hs 0 additions, 1 deletionhadrian/src/Settings/Builders/RunTest.hs
Loading
-
mentioned in commit 095d64f4
-
mentioned in commit 7b26126e
-
mentioned in commit 6a36a91d
-
mentioned in commit f93ac217
-
mentioned in commit 10a74dcd
-
mentioned in commit 8107b5c5
-
mentioned in commit d9268d03
-
mentioned in commit 77e8741f
-
mentioned in commit 5dc618db
-
mentioned in commit fd0caf2f
-
mentioned in commit c5b9ac0a
-
mentioned in commit cd8e9967
-
mentioned in commit fa626d50
-
mentioned in commit 828db4d8
-
mentioned in commit 2ee67f47
-
mentioned in commit 6bee4d8a
Please register or sign in to comment