diff options
-rw-r--r-- | hadrian/src/Rules/BinaryDist.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hadrian/src/Rules/BinaryDist.hs b/hadrian/src/Rules/BinaryDist.hs index 7db11dddd0..da6f27d1de 100644 --- a/hadrian/src/Rules/BinaryDist.hs +++ b/hadrian/src/Rules/BinaryDist.hs @@ -425,8 +425,10 @@ runGhcWrapper = pure $ "exec \"$executablename\" -f \"$exedir/ghc\" ${1+\"$@\"}\ -- | We need to ship ghci executable, which basically just calls ghc with -- | --interactive flag. ghciScriptWrapper :: Action String -ghciScriptWrapper = pure $ unlines - [ "executable=\"$bindir/ghc\"" +ghciScriptWrapper = do + version <- setting ProjectVersion + pure $ unlines + [ "executable=\"$bindir/ghc-" ++ version ++ "\"" , "exec $executable --interactive \"$@\"" ] -- | When not on Windows, we want to ship the 3 flavours of the iserv program |