Skip to content
Snippets Groups Projects
Commit c6cca535 authored by ARATA Mizuki's avatar ARATA Mizuki Committed by Marge Bot
Browse files

hadrian: Use $bindir instead of `dirname $0` in ghci wrapper

`dirname $0` doesn't work when the wrapper is called via a symbolic link.

Fix #20589
parent f31973ba
No related branches found
No related tags found
1 merge request!6891Marge Bot Batch MR - DO NOT TOUCH
Pipeline #43424 failed
......@@ -420,8 +420,7 @@ runGhcWrapper = pure $ "exec \"$executablename\" -f \"$exedir/ghc\" ${1+\"$@\"}\
-- | --interactive flag.
ghciScriptWrapper :: Action String
ghciScriptWrapper = pure $ unlines
[ "DIR=`dirname \"$0\"`"
, "executable=\"$DIR/ghc\""
[ "executable=\"$bindir/ghc\""
, "exec $executable --interactive \"$@\"" ]
-- | When not on Windows, we want to ship the 3 flavours of the iserv program
......
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