Skip to content
Snippets Groups Projects
Commit bb0dc5a5 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Marge Bot
Browse files

Hadrian: Invoke ghc0 via bash when running tests to fix #17362.

cmd uses RawCommand which uses Windows semantics to find the executable
which sometimes seems to fail for unclear reasons.

If we invoke ghc via bash then bash will find the ghc executable and
the issue goes away.
parent 21663693
No related merge requests found
......@@ -47,7 +47,9 @@ testRules = do
-- Using program shipped with testsuite to generate ghcconfig file.
root -/- ghcConfigProgPath %> \_ -> do
ghc0Path <- (<.> exe) <$> getCompilerPath "stage0"
cmd [ghc0Path] [ghcConfigHsPath, "-o" , root -/- ghcConfigProgPath]
-- Invoke via bash to work around #17362.
-- Reasons why this is required are not entirely clear.
cmd ["bash"] ["-c", ghc0Path ++ " " ++ ghcConfigHsPath ++ " -o " ++ (root -/- ghcConfigProgPath)]
-- Rules for building check-ppr and check-ppr-annotations with the compiler
-- we are going to test (in-tree or out-of-tree).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment